URL Encoder / Decoder

Loading... Thanks for your rating!

Free online URL encoder/decoder. Encode or decode any text with encodeURIComponent or encodeURI. Auto-detection of encoding status.

Updated: 2026-07-11

FAQ

❓ What is URL encoding and decoding?

URL encoding (Percent-encoding) converts special characters to a % followed by two hexadecimal digits. For example, a space becomes %20, Chinese character '中' becomes %E4%B8%AD. URL decoding reverses this. Essential for safely handling URL parameters in web development.

❓ What's the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes all non-alphanumeric characters including URL structure chars (:/?#&), perfect for parameter values. encodeURI preserves URL structure characters and only encodes spaces and non-ASCII characters, ideal for complete URLs.

❓ Which characters need URL encoding?

Characters needing encoding: 1) Non-ASCII characters; 2) URL reserved characters (:/?#[]@!$&'()*+,;=) when not used as delimiters; 3) Unsafe characters (spaces, quotes, <>, %, {}, |, ^, ~). Safe: letters (A-Z, a-z), digits (0-9), and - _ . ! ~ * ' ( ).

❓ How do I encode/decode URLs in the browser console?

In DevTools Console (F12): encodeURIComponent('hello world') returns 'hello%20world'; decodeURIComponent('hello%20world') returns 'hello world'. For full URLs: encodeURI('https://example.com/path?name=value').

❓ Is this online tool secure?

100% secure. All encoding/decoding happens locally in your browser. No data is uploaded to any server. Your content is processed only in your browser's memory and cleared when you close the page.

We Value Your Feedback!

Help us improve this tool. Share your suggestions, bug reports, or feature requests.

Copied!