URL Encode & Decode Tool is a free online utility for handling special characters in URLs. Whether you're developing APIs, debugging requests, or working with URLs containing Chinese text or special symbols, this tool helps you encode and decode quickly — no installation required.
URLs can only contain a limited set of characters — letters, digits, and a few symbols like -, _, ., ~. All other characters (such as Chinese text, spaces, &, =, or +) must be percent-encoded: converted to %XX hexadecimal format. For example, a space becomes %20, and the Chinese characters "你好" become %E4%BD%A0%E5%A5%BD.
This tool offers two encoding methods based on JavaScript's built-in functions:
URL encoding (percent-encoding) replaces special characters with %XX sequences and is designed for safe transmission in URLs. Base64 converts any binary data into an ASCII string, typically used for encoding files or images in text form. They serve different purposes and are not interchangeable.
In UTF-8 encoding, a Chinese character typically takes 3 bytes. Each byte is represented as one %XX group, so a single Chinese character produces 3 groups — 9 characters total. This is standard and expected behavior.
Use encodeURIComponent when encoding a single parameter value — it will also escape structural characters like &, =, and ?. Use encodeURI when encoding an entire URL that must keep its structure intact, as it preserves those structural characters.
Both represent a space, but in different contexts. %20 is the standard percent-encoding for a space character. The + sign represents a space in the older application/x-www-form-urlencoded format used by HTML forms. This tool uses the standard %20 encoding.

Loading...