URL Encoder / Decoder

Percent-encode or decode URLs and query string parameters instantly. RFC 3986 compliant.

URL Encoder / Decoder

Encode special characters in URLs using percent-encoding, or decode percent-encoded URLs back to plain text. Supports full encodeURIComponent and partial encodeURI modes.

Input

Output

✓ Copied!
Encoded URL will appear here…

FAQ

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and leaves characters like : / ? & = intact. encodeURIComponent encodes every special character, making it suitable for encoding query parameter values.

When should I use URL encoding?

Use URL encoding whenever you include special characters (spaces, accents, symbols) in a URL — especially in query string values.

Does this tool send my data to a server?

No. All encoding and decoding happens entirely in your browser using the built-in encodeURIComponent / decodeURIComponent functions.

Frequently Asked Questions

What is URL encoding?

URL encoding (percent encoding) replaces unsafe ASCII characters with a % followed by their hexadecimal code, making them safe to transmit in a URL.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL, preserving characters like /, ?, #, :. encodeURIComponent encodes a single component (e.g., a query parameter value), encoding those structural characters too.

Does this tool double-encode?

No. The tool detects if a string is already encoded before encoding to prevent double-encoding errors.