URL Encode/Decode is an online URL encoding/decoding tool that can URL-encode (percent-encode) or decode text content. URL encoding converts special characters into %XX hexadecimal format to ensure correct transmission over the internet. The tool supports smart recognition of complete URL structures, automatically encoding/decoding only the query parameter portion while preserving the protocol, domain, and path unchanged. All operations run locally in your browser — no data is uploaded to any server.
Enter or paste the URL or text content to process in the left input box
Click the "Encode" button to convert special characters in the text to URL-safe format, or click "Decode" to restore the encoded URL to readable text
The encoded/decoded result will appear in the right output box. You can click "Copy" to copy the result or "Download" to save it as a text file
?name=%E5%BC%A0%E4%B8%89)Automatically identifies full URL structure and only encodes/decodes the query parameter portion, keeping the protocol, domain, and path unchanged for more precise processing
Free daily usage is provided for every user, so routine URL encoding needs can be met at zero cost; frequent or professional use can unlock more quota by subscribing to membership
All encoding and decoding run entirely in your browser; your data is never uploaded to any server, providing 100% privacy protection
Supports both URL encoding and URL decoding, with a built-in swap button to quickly exchange input and output for a seamless workflow
Processes text using UTF-8 encoding, so Chinese, Japanese, Korean, and any other Unicode characters are encoded/decoded correctly
No installation or registration required; open your browser and use it right away, compatible with PC and mobile platforms
URL encoding (also known as percent-encoding) is a mechanism that converts special characters in URLs into %XX format, where XX is the hexadecimal representation of the character's ASCII code. According to RFC 3986, URLs may only contain a limited set of characters (unreserved characters); all other characters must be percent-encoded.
For non-ASCII characters (such as Chinese), URL encoding first converts them to a UTF-8 byte sequence, then percent-encodes each byte. For example: the Chinese characters "你好" have the UTF-8 encoding E4 BD A0 E5 A5 BD (6 bytes), which becomes %E4%BD%A0%E5%A5%BD after URL encoding.
Smart Mode: When the input is a complete URL, the tool automatically identifies the URL structure. The path portion is encoded using encodeURI (preserving structural characters like /, :), query parameters are encoded using encodeURIComponent per parameter (encoding separators like &, =), and the Hash portion remains unchanged.
| Character | Encoding | Character | Encoding | Character | Encoding | Character | Encoding |
|---|---|---|---|---|---|---|---|
| ! | %21 | # | %23 | $ | %24 | % | %25 |
| & | %26 | ' | %27 | ( | %28 | ) | %29 |
| * | %2A | + | %2B | , | %2C | / | %2F |
| : | %3A | ; | %3B | = | %3D | ? | %3F |
| @ | %40 | [ | %5B | ] | %5D | 空格 | %20 |
| " | %22 | < | %3C | > | %3E | ` | %60 |
JavaScript provides two URL encoding functions with different encoding scopes:
| Character Range | encodeURI | encodeURIComponent |
|---|---|---|
A-Z a-z 0-9 | Kept Unencoded | Kept Unencoded |
- _ . ! ~ * ' ( ) | Kept Unencoded | Kept Unencoded |
; / ? : @ & = + $ , # | Kept Unencoded | Encoded as %XX |
URL encoding (percent-encoding) is a way to convert special characters into %XX format. URLs can only use a subset of ASCII characters. If a URL contains Chinese, spaces, or other special characters (such as &, =, #), these characters must be encoded; otherwise, the URL may be parsed incorrectly or data may be lost during transmission.
Yes. URL encoding converts each non-ASCII character into multiple %XX sequences. For example, one Chinese character (3-byte UTF-8) becomes %XX%XX%XX (9 characters) after encoding, tripling in length. Characters within the ASCII range (letters, digits) are not encoded and remain unchanged.
Fully supported. The tool uses UTF-8 encoding to process text, first converting non-ASCII characters to a UTF-8 byte sequence before URL encoding. It can correctly handle Chinese, Japanese, Korean, and any other Unicode characters.
No. All encoding/decoding operations run entirely in your browser using the native encodeURIComponent() and decodeURIComponent() APIs. Your data never leaves your device.
Common reasons: ① The input string is not a valid URL-encoded format (e.g., %XX where XX is not a valid hexadecimal number); ② The string contains an incomplete percent-encoding (e.g., a trailing % sign); ③ The encoding used a non-UTF-8 charset (e.g., GBK), resulting in garbled text after decoding. The tool will attempt decoding and show an error message if it fails.
This tool provides free daily usage, so routine lightweight needs can be met at zero cost. No registration or login is required — just open the page and use it. When you need higher processing volumes or more frequent use, subscribing to membership unlocks more benefits to handle various scenarios with ease.
They serve different purposes: URL encoding (percent-encoding) converts special characters into %XX format so they can be safely transmitted within a URL; Base64 converts arbitrary binary data into printable ASCII characters (letters, digits, +, /, =) for transmitting binary data over text protocols. URL encoding converts byte-by-byte per character, while Base64 converts in groups of three bytes.
A Chinese character occupies 3 bytes in UTF-8, so after URL encoding it becomes three %XX sequences. For example, "你好" is encoded as %E4%BD%A0%E5%A5%BD. When decoding, the tool restores these %XX sequences back to the original Chinese.
The tool processes text entirely in your browser, so the amount you can handle is mainly limited by browser memory. Everyday URLs, query parameters, and paragraphs are processed smoothly. For extremely long text, we recommend processing it in batches for the best experience.
No. URL encoding is reversible and does not change the semantics of the original data. The encoded %XX sequences can be losslessly restored to the original text via decoding, with no information lost.
Spaces are special characters in URLs and cannot be used directly. Per the specification, a space can be encoded as %20 (recommended) or as + (in form application/x-www-form-urlencoded encoding). This tool uses the standard %20 representation for spaces.
You can use this tool directly in your browser for one-off encoding/decoding. For program integration, browsers provide native encodeURIComponent() / decodeURIComponent() functions, and backend languages have their own built-ins. This tool is especially handy for quickly verifying whether a URL encoding is correct, or copying the result for direct use.
Content last updated:2026-07-16
Online DES/2DES/3DES encryption and decryption tool, supporting all encryption modes and padding methods. Fully processed locally in the browser for security and efficiency.
Online AES encryption and decryption tool, supporting AES-128/192/256, covering all encryption modes and padding methods, secure, efficient, and easy to operate.
Online 3DES encryption/decryption tool, supporting all encryption modes and padding methods, fully processed locally in the browser to ensure data security.
Online RC4 stream cipher encryption/decryption tool, supports multiple key lengths, one-click encryption and decryption, all operations are completed locally in the browser to ensure data security.
Online Rabbit stream cipher encryption/decryption tool, using a high-speed symmetric encryption algorithm, supporting multiple key lengths. All operations are performed locally in the browser to ensure data security.
Online RC2 encryption and decryption tool, supporting ECB/CBC modes, variable key length and effective key bits, all processed locally in the browser to ensure data security.
Online IDEA International Data Encryption Algorithm Tool, supporting multiple encryption modes including ECB/CBC/CFB/OFB/CTR. All operations are performed locally in the browser to ensure data security.
Online Blowfish encryption/decryption tool supporting 128/192/256/448-bit variable keys, ECB/CBC/CFB/OFB modes, and multiple padding methods. All operations are performed locally in the browser to ensure data security.
CAST-128 (CAST5) online encryption and decryption tool, supporting multiple encryption modes such as ECB/CBC/CFB/OFB, flexible padding methods, and output encoding. All operations are performed locally in the browser, ensuring security and efficiency.
Online SM4 National Symmetric Encryption and Decryption Tool, supporting five working modes: ECB/CBC/CFB/OFB/CTR, and multiple padding methods. All operations are performed locally in the browser to ensure data security.
Online RSA asymmetric encryption and decryption tool, supporting key pair generation, public key encryption and private key decryption, private key signing and public key verification. All operations are performed locally in the browser to ensure data security.
Online MD5 hash encryption tool, supporting 16-bit/32-bit output, case switching, and file MD5 verification. All operations are completed locally in the browser, ensuring security and efficiency.
MD2 Encryption Tool: Generate 32-bit MD2 hash values online, supporting uppercase/lowercase output and file verification.
Online SHA-1 hash calculation tool for efficient text encryption and file integrity verification.
Online SHA-256 hash calculation tool for quick text encryption and file integrity verification.
Online SHA-384 hash calculation tool for fast text encryption and file integrity verification.
Online SHA-512 hash calculation tool, supporting text encryption and file integrity verification, quickly generating secure hash values.
Online SM3 National Hash Encryption Tool, supports text hash calculation and file verification, outputs a 256-bit hash value, compliant with GM/T 0004-2012 national standard.
Online Base64 encode/decode tool, supporting text Base64 encoding and decoding, all done locally in the browser, safe and efficient.
Online UTF-8 encoding/decoding tool, supporting conversion between text and UTF-8 hexadecimal bytes. All processing is done locally in the browser, ensuring data security.