JSON Stringify Unicode

Use the JSON Stringify Unicode Tool to convert Unicode-containing text into a JSON-safe string format. It automatically escapes special characters, supports non-ASCII Unicode escaping, and adds quotes to make your text JSON-ready.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
Total characters: 0
Options
Escape non-ASCII as \\u
Wrap result in quotes
Pretty print output

How to Use:

  1. Enter or paste Unicode-rich text in the input area.
  2. Use the Options box to:
    • Enable \u escaping for non-ASCII characters.
    • Choose whether to wrap the output in double quotes.
    • Enable pretty-print for easier readability.
  3. Output updates instantly.
  4. Export or copy the stringified result from the output area.

Tool Options:

  • Escape non-ASCII as \u: Turns characters like 🌍 into \u1f30d.
  • Wrap result in quotes: Adds surrounding " for use as a JSON string value.
  • Pretty print output: Makes the output easier to read (adds indentation).

Example:

Input:

Hello 🌍 - 𝓤𝓷𝓲𝓬𝓸𝓭𝓮 ✨

Output:

"Hello \u1f30d \u2014 \u1d4a4\u1d4c8\u1d4ca\u1d4c8\u1d4c4\u1d4cf\u1d4c0\u1d4c5 \u2728"

Common Use Cases:

Perfect for embedding Unicode strings into JSON configs, JavaScript code, or APIs where escaping and proper encoding are required for safe parsing and transport.

Useful Tools & Suggestions:

If you’re stringifying Unicode, Convert Unicode to a String Literal can help you prep data for code environments. And when you’re ready to work with it again, JSON Parse Unicode brings it right back into usable form.