URL Encoder & Decoder

Percent-encode or decode URLs and query strings safely.

Encode

Decode

Was this tool helpful?

FAQ

What is URL encoding?

URL encoding (also called percent-encoding) replaces unsafe characters in a URL with a % followed by two hex digits. For example, a space becomes %20 and & becomes %26.

When do I need to URL encode?

Any time you pass user input as a URL query parameter. Without encoding, characters like &, =, and # can break the URL structure.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and leaves characters like / and ? intact. encodeURIComponent encodes a single parameter value and converts all reserved characters.

Does this tool decode as well as encode?

Yes. Paste an encoded URL or string into the decode tab to convert %20-style encoding back to readable text.

You may also like