Skip to content

Encoding

JavaScript Escape

Escape a plain string into a JavaScript string literal — handles quotes, backslashes and control characters.

JS-escaped string
Output will appear here…

Why use our JavaScript Escape?

100% private

Everything runs in your browser. Your data never leaves your device — safe for production payloads.

Instant results

No round trips, no rate limits, no login. Format, validate and inspect megabytes of JSON in milliseconds.

Standards-first

Follows RFC 8259 / ECMA-404 exactly. Reports errors with precise line and column diagnostics.