Single JSON String Encoder and Decoder User Guide
Encode text as one JSON string value locally, or decode one complete JSON string exactly once.
How to use
- Choose text encoding or JSON string decoding.
- Paste input, convert, and review the result and escaped view.
- Copy or download a UTF-8 result.
Formats and limits
- Input is limited to 100,000 UTF-16 code units and output to 600,002.
- To avoid cross-system text loss, this tool rejects unpaired surrogate code units.
- Only one string value is handled; JSON repair, recursive decoding and uploads are excluded.
Output
A UTF-8 copy of the full text or single JSON string value.
Frequently asked questions
Can the result be safely embedded in HTML?
No. JSON string escaping is not HTML or script sanitization.
The file name and content are only processed in your browser and are not transmitted to the server. The original file will not be overwritten. Please export the required results before leaving the tool.