About
Runs encodeURIComponent / decodeURIComponent locally for Chinese and special characters in query values.
How to use
Paste text, then encode or decode.
What this tool does
Converts between plain text and percent-encoding so you do not hand-replace spaces and Chinese.
Input and output examples
“a b” encodes to a%20b. A string that already has % decodes back to the original.
Common uses
Build query strings, read encoded redirects, or handle state on a callback URL.
Limits
Local only. Encoding a full URL also encodes : and / in https://. Usually encode parameter values only.
FAQ
How is this different from encodeURI?
This uses encodeURIComponent, which is better for a single parameter value than for a whole URL.
Is it uploaded?
No.
What if decode fails?
It may not be valid percent-encoding, or it was encoded more than once. Decode as many times as the source requires.
Related tools
- Developer and text tools
- Local JSON Formatter
Format, minify, and validate JSON in the browser.
- Timestamp and Date Convert
Convert between Unix timestamps and readable dates.
- UA String Parser
Extract browser, OS, and device hints from a UA string.
- Cookie Format Convert
Convert between HTTP Cookie, JSON, and Netscape formats.
- List Text Cleaner
Trim, dedupe, sort, change case, and extract emails.
- Delimited Text to Table
Split text into a table and copy CSV / TSV.