URL Encoder & Decoder

Encode or decode URL strings instantly. Choose between component encoding (query values) or full-URL encoding — all in your browser.

Privacy: All processing happens in your browser. Your input is never sent to our servers.

What Is URL Encoding?

URL encoding (also called percent encoding) converts characters that are not allowed in URLs into a %XX format, where XX is the hexadecimal byte value. For example, a space becomes %20 and an ampersand becomes %26.

encodeURIComponent vs encodeURI — What's the Difference?

JavaScript (and this tool) provides two encoding modes that differ in which characters they preserve:

Common Scenarios

Worked Example

Input: Hello World & more=stuff
encodeURIComponent: Hello%20World%20%26%20more%3Dstuff
encodeURI: Hello%20World%20&%20more=stuff

Notice how encodeURI preserves = and & because they are meaningful URL characters, while encodeURIComponent encodes them.

Awesome findWhatIsMyIP Blog

Frequently asked questions

When should I use encodeURIComponent versus encodeURI?

Use encodeURIComponent for a single query-string value or path segment; it escapes '&', '=', '/', '?' and more. Use encodeURI for a whole URL when you only want to fix spaces and illegal characters while leaving the structure intact.

Why does a space sometimes become %20 and sometimes +?

Percent-encoding uses %20 for a space. The '+' form is a convention specific to application/x-www-form-urlencoded form submissions; outside that context, use %20.

Is my input sent to a server?

No. The tool uses the browser's built-in encoding functions and transmits nothing.