URL Encoder & Decoder

Encode special characters for safe use in URLs and query strings, or decode percent-encoded text back to plain characters.

Choose encodeURIComponent for query parameter values or encodeURI for full URLs — the tool explains when to use each.

🔒 Privacy first⚡ Instant✦ No signup

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.

Related tools