24 chars · 3 lines
Two-way sync · Edit either side and the other updates automatically.
"symbol": "\u12G4"24 chars · 3 lines
Two-way sync · Edit either side and the other updates automatically.
"symbol": "\u12G4"JSON Unicode escape error
The \u escape has a fixed four-hex-digit form in JSON. A typo such as \u12G4, an incomplete sequence, or a backslash copied through another encoding layer can make the entire string fail parsing. This tool is free to use. No account or payment is required.
Last updated
Each \u escape encodes one four-hex-digit UTF-16 code unit. Letters G through Z and any missing digit make the escape malformed before the parser can interpret its value.
JSON text can contain ordinary Unicode characters directly. Use an escape only when your transport or generation process requires it; unnecessary manual escapes add another place for typos.
G is not hexadecimal. The corrected example uses the valid escape for the letter A.
{
"symbol": "\u12G4"
}{
"symbol": "\u0041"
}Common questions
Exactly four hexadecimal digits follow each JSON \u escape.
Yes. JSON text can contain Unicode characters directly, subject to normal string escaping rules.
A JavaScript string can add a separate escape layer before JSON.parse sees the JSON text. Inspect the runtime string to distinguish the two grammars.
Debugging a specific JSON issue? Browse JSON troubleshooting.