πŸ› οΈ Developer Tools

Free URL Encoder & Decoder


Encode special characters for URLs or decode percent-encoded strings back to readable text. Runs in your browser.

Try it


Encode vs Encode Component β€” what’s the difference?

encodeURI("https://example.com/path?q=hello world&lang=en")
// β†’ "https://example.com/path?q=hello%20world&lang=en"
// Keeps :, /, ?, &, = intact

encodeURIComponent("hello world&lang=en")
// β†’ "hello%20world%26lang%3Den"
// Encodes EVERYTHING except letters, digits, - _ . ~

Use encodeURI for full URLs. Use encodeURIComponent for individual query parameter values.

Common encoded characters

CharacterEncodedWhy
(space)%20Not allowed in URLs
&%26Separates query params
=%3DSeparates key=value
?%3FStarts query string
#%23Fragment identifier
/%2FPath separator
@%40Used in email/auth