DevTools

URL Encoder / Decoder

Percent-encode URLs or decode encoded URL strings — real-time, in your browser.

URL Input

Encoded Output

Encoded URL will appear here

URL Encoder and Decoder

Paste a URL or query string component to instantly percent-encode it, or decode an already-encoded string back to readable form. The tool uses JavaScript's native encodeURIComponent and decodeURIComponent functions and processes input in real-time as you type. No data is sent to any server.

Frequently Asked Questions

What is URL encoding?
URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a safe format using a "%" sign followed by two hexadecimal digits. For example, a space becomes %20 and an ampersand becomes %26.
When do I need to URL encode?
You need to encode URLs when passing query string parameters that contain special characters like spaces, &, =, +, ?, #, or non-ASCII characters like accented letters or Chinese characters.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL and leaves characters like / : ? # & = intact. encodeURIComponent encodes a URL component (like a query value) and also encodes those characters. This tool uses encodeURIComponent, which is what you usually want for parameter values.
Is my data safe?
Yes. All encoding and decoding is done using browser-native JavaScript functions. Nothing is sent to any server.
Can I decode multiple parameters at once?
Yes. Paste the entire encoded URL or query string and the decoder will process the whole string at once.