Text utilities

Free JSON Escape Tool.

Correctly escaped JSON string and inverse decoding.

Prepare text for JSON with an explicit round-trip check, reducing ambiguity around quotes, newlines and nested escaping.

Chrome extension + account required.
25 free automation tasks/month across tools. Browser-provider limits apply.

WHAT TO HAVE READY

String content.

YOUR STARTING POINT

A task you can make yours.

Copy it here. Paste it into WebAct when you are ready.

This page prepares your prompt. The task runs in WebAct.

01

Make the task yours.

Review the prompt above. Add your goal and any requirements that matter.

02

Bring it to WebAct.

Open WebAct, paste the task and provide the data and rules. Review any proposed calculation or code action before approving it, then check a known example.

03

Check the useful part.

Check formulas, code and calculations against known inputs in the appropriate runtime. Review actions before execution and keep the original data available.

A PRACTICAL GUIDE

How to use the JSON Escape Tool.

JSON string escaping must handle quotes, backslashes and control characters. Use a serializer rather than a sequence of improvised substitutions.

Make the workflow fit your task.

Treat the input as a string value and use a JSON serializer to produce valid quoting and escapes. Distinguish a complete JSON document from a string embedded inside another document. Parse the result back to confirm that the original characters are recovered.

What you provide
String content.
What you get
Correctly escaped JSON string and inverse decoding.

See the input and the result.

Illustrative input and output · a teaching example, not a live WebAct run

Example input

Encode the text hello followed by one line break and then world as a complete JSON string literal. Preserve the line break when parsed back.

Completed example

"hello\nworld"

The JSON source contains a backslash followed by n, not an unescaped newline inside the quotes. Parsing this string returns the original text with one line break.
Download this example

Load this input into the prompt, then copy it to WebAct to try the task. Your result may differ from the illustration.

Decisions and troubleshooting.

Should the surrounding quotation marks be included in an escaped JSON string?

Include them when producing a complete JSON string literal. Omit them only when the destination specifically expects the interior representation.

Why do backslashes multiply when the string passes through another layer?

Each serialization layer may escape the previous representation. Track whether you are handling original text, JSON text or a displayed code string.

Try it with your own source.

Replace the example with your material in the task prompt. Keep the requirements you need, then copy the task into WebAct.

Customize and copy the task ↑
BEFORE YOU BEGIN

Using WebAct.

The prompt and example are available here. Run your task in the WebAct Chrome extension.

Is this tool free?

You can copy and edit the prompt here for free. To use it with WebAct, install the Chrome extension, create and verify your account, and connect an available browser ChatGPT session. The Free plan includes 25 user-started automation tasks per calendar month, shared across tools. Ordinary browser Chat is separate; provider limits apply.

Learn about shared context in our privacy policy and choosing Chat or Task.

FROM A PROMPT TO YOUR OWN WORK

Bring the task to your page.

Install WebAct, add your source material and make the result yours.

Install WebAct