25 chars · 1 line
45 chars · 3 lines
25 chars · 1 line
45 chars · 3 lines
Unicode query serialization
Build Query accepts Unicode JSON strings. URLSearchParams encodes the UTF-8 bytes into percent escapes while preserving spaces with form-style + serialization. This tool is free to use. No account or payment is required.
Last updated
Characters outside the unescaped URLSearchParams set are encoded as UTF-8 byte sequences and then written as %HH escapes.
This is normal URL transport encoding; the parser reconstructs the original Unicode strings when the query is decoded.
The generated query contains UTF-8 percent escapes and a + for the space.
{"q":"你好 ✓","emoji":"🚀"}q=%E4%BD%A0%E5%A5%BD+%E2%9C%93&emoji=%F0%9F%9A%80Common questions
Each Unicode character is encoded to one or more UTF-8 bytes, and those bytes are represented with %HH escapes.
Yes. URLSearchParams serializes emoji through UTF-8 percent encoding.
Yes, when the query is parsed with standard URL decoding behavior.
Debugging a specific Query String issue? Browse Query String troubleshooting.