URL Encoder / Decoder
Encode text for URLs with encodeURIComponent or encodeURI, and decode percent-encoded strings.
100% private — everything runs in your browser
How to Use
- 1
Pick a mode: encode a component, encode a full URL, or decode.
- 2
Type or paste your text — the result updates as you type.
- 3
Copy the output with the copy button.
Examples
Encode a query value
Input
hello world & moreOutput
hello%20world%20%26%20moreDecode a percent-encoded value
Input
caf%C3%A9%20menuOutput
café menuFAQ
When should I use encodeURIComponent instead of encodeURI?
Use encodeURIComponent for a single parameter value or path segment. Use encodeURI for a complete URL where characters like : / ? & = must stay intact.
Why does decoding fail?
decodeURIComponent throws when a percent escape is incomplete or invalid, for example a lone "%" or "%E0%A4". The tool reports this instead of returning broken text.
Does the tool send my data anywhere?
No. Encoding and decoding happen entirely in your browser.
Related Tools
Base64 Encoder/DecoderEncode text to Base64 and decode Base64 back to text with full Unicode and emoji support — 100% in your browser.UTM Link BuilderBuild campaign URLs with UTM parameters for Google Analytics, Matomo and every other analytics tool.JSON FormatterFormat, beautify, minify and validate JSON instantly — right in your browser.JSON ValidatorValidate JSON instantly and find syntax errors with the exact line, column and position — right in your browser.Unix Timestamp ConverterConvert Unix timestamps to readable dates and back, with seconds and milliseconds support.Hash GeneratorCompute MD5, SHA-1, SHA-256 and SHA-512 hashes of any text, entirely in your browser.