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