40 chars · 1 line
34 chars · 4 lines
40 chars · 1 line
34 chars · 4 lines
UTF-8 query decoding
Query strings carry non-ASCII text as UTF-8 bytes represented by percent escapes. URLSearchParams decodes those bytes back into JavaScript Unicode strings. This tool is free to use. No account or payment is required.
Last updated
Characters outside plain ASCII are UTF-8 encoded before their bytes are written as %HH sequences in a URL component.
The parser reverses that process and exposes the decoded string in JSON.
Two UTF-8 values are decoded in one query.
?check=%E2%9C%93&word=%E4%BD%A0%E5%A5%BD{
"check": "✓",
"word": "你好"
}Common questions
Modern URLs generally percent-encode UTF-8 bytes.
Many Unicode characters require multiple UTF-8 bytes.
URLSearchParams is forgiving; see the malformed percent-encoding page for the resulting replacement characters.
Debugging a specific Query String issue? Browse Query String troubleshooting.