Single JSON String Encoder and Decoder

Encode or decode one JSON string locally without parsing other structures.

Enable JavaScript for interactive processing. You can read the instructions, limits, and FAQs below without it. Files are processed only in your browser.

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

  1. Choose text encoding or JSON string decoding.
  2. Paste input, convert, and review the result and escaped view.
  3. 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.