Skip to content

URL Encoder / Decoder

Embed

Paste this where you want URL Encoder / Decoder on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/url-encode-decode/" width="100%" height="500" frameborder="0" loading="lazy" title="URL Encoder / Decoder"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/url-encode-decode/">URL Encoder / Decoder</a> by BrowserUtils</p>

Encode and decode URL components.Runs in this tab.

Next step

About URL Encoder / Decoder

Free online URL encoder and decoder. Percent-encode special characters for URLs or decode encoded URL strings. It runs in your browser. Nothing is sent to a server.

Questions

What is URL encoding?
URL encoding (percent encoding) replaces special characters with a % sign followed by their hex value, making strings safe to include in URLs.
Which characters need to be URL encoded?
Characters like spaces, &, =, ?, #, +, and non-ASCII characters must be encoded. Letters, digits, hyphens, underscores, periods, and tildes are safe and do not need encoding.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URI but preserves characters like : / ? # that are part of URL structure. encodeURIComponent encodes everything except letters, digits, and a few symbols, making it suitable for query parameter values.
Can I use this to fix broken URLs?
Yes, if a URL has unencoded special characters causing errors, paste it here to properly encode the problematic characters while keeping the URL structure intact.
How do I URL encode a query string with spaces?
Spaces in URLs should be encoded as %20 (or + in form data). Paste your text and the tool will replace spaces and other unsafe characters with their percent-encoded equivalents.
Does URL encoding run in my browser?
Yes, encoding and decoding happen entirely in your browser. No data is sent to a server, so it is safe to use with API keys and other sensitive URL parameters.

More in Encoding & Decoding

All 20 encoding & decoding