URL Encoder / Decoder

URL Encoder / Decoder

Encode or decode URL components — query strings, parameters, and text — with percent-encoding. Live, private, and runs entirely in your browser.

Type or paste text above to encode or decode.

The URL encoder / decoder converts plain text into a safe, web-ready format and back again. Paste a query string, a URL parameter, or any text with spaces and special characters — the tool applies percent-encoding instantly so every character is valid inside a URL.

Switch to Decode to reverse the process: paste an encoded string like hello%20world%21 and get hello world! back. If the input is not valid percent-encoding, the tool flags it with a clear error instead of guessing. Both directions update live as you type, and the status bar shows the character count before and after.

Everything runs locally in your browser — nothing is uploaded and there is no signup. Perfect for building API requests, debugging links, preparing email or SMS URLs, and fixing copy-pasted URLs with broken characters.

Frequently Asked Questions

What is the difference between encodeURIComponent and encodeURI?
encodeURIComponent encodes every reserved character (including &, =, ?, and /) so a string is safe as a single query parameter value. encodeURI keeps reserved characters intact and is meant for encoding an entire URL. This tool uses encodeURIComponent, which is what you want for parameters and text.
Why does my encoded URL show %20?
%20 is the percent-encoding of a space character. URLs cannot contain literal spaces, so browsers and servers replace them with %20 (or + in form data). The decoder turns %20 back into a space.
How do I encode an entire URL, not just one part?
If the whole link contains reserved characters you want preserved (like ? and &), keep the URL structure intact and encode only each parameter value separately. Encoding a full URL with encodeURIComponent will turn the ? and & into %3F and %26, which breaks the link.
Is my data sent anywhere?
No. Encoding and decoding happen entirely in your browser with JavaScript. Your text never leaves your device, so it is safe to paste tokens or private URLs.

Related Tools

JSON Formatter Text Counter Password Generator Base64 Encoder / Decoder

Like Numbrary? A small tip keeps the tools free.

Send a tip