27 chars · 3 lines
Two-way sync · Edit either side and the other updates automatically.
"value": "alpha⇥beta"27 chars · 3 lines
Two-way sync · Edit either side and the other updates automatically.
"value": "alpha⇥beta"JSON string control-character error
Invisible characters can make a JSON string invalid even when the text looks normal on screen. A literal tab, newline, carriage return, or other low control character must be represented with a valid escape sequence. This tool is free to use. No account or payment is required.
Last updated
Spreadsheet cells, terminal output, and multiline fields can contain tab or control characters that are hard to distinguish from ordinary spacing. The parser location is more reliable than visual inspection alone.
Using \t or \n in raw JSON does not remove the tab or newline from the decoded string. It provides a legal textual representation that the parser can decode back to the intended character.
The first value contains a real tab; the valid JSON represents that tab with the \t escape.
{
"value": "alpha beta"
}{
"value": "alpha\tbeta"
}Common questions
Unescaped characters from U+0000 through U+001F are not allowed inside JSON strings. Common examples are tab, newline, and carriage return.
No. The raw JSON uses \t, and the decoded string contains the tab character again.
Many control characters are invisible or rendered as ordinary spacing, so the source can appear readable while containing illegal raw characters.
Debugging a specific JSON issue? Browse JSON troubleshooting.