← Hashito System Home 日本語 Tools Blog
Input
Result

How to use and what each option does

Escape / Unescape

"Escape" converts your input into a form that is safe inside a JSON string ("\", \\\, newline→\n, tab→\t, etc.). The output is the inner content without the surrounding double quotes. "Unescape" does the reverse. Internally it uses JSON.stringify / JSON.parse, so the conversion follows the spec exactly.

Escape non-ASCII to \uXXXX

When enabled during escaping, every non-ASCII character (Japanese, emoji, etc.) is converted to a \uXXXX unicode escape. This helps when pasting into legacy ASCII-only systems or avoiding mojibake. When disabled, non-ASCII characters are kept as-is.

Errors when unescaping

Unescaping requires the input to follow valid JSON string escape rules. If it contains a broken escape (for example a trailing lone \), an error is shown. Check that your \ and " characters are balanced.

Frequently asked questions (FAQ)

What is JSON string escaping?

Converting special characters such as double quotes, backslashes, newlines, and tabs into forms safe inside a JSON string. It is used when embedding code or logs as a JSON value.

Is the text I enter safe?

Yes. All processing runs entirely in your browser (JavaScript); your input is never sent to a server.

Can it handle non-ASCII and emoji?

Yes. By default they are kept as-is. Enabling "Escape non-ASCII to \uXXXX" converts every non-ASCII character to \uXXXX form.