String Escaper

Escape and unescape text for safe use in JavaScript or JSON strings.

Suggested Tools

About the String Escape Tool

The String Escape tool helps you encode or decode strings by converting special characters into safe, escaped formats. This is especially useful when working with JSON, JavaScript, HTML, or programming languages where characters like quotes, slashes, or newlines may cause errors.

Why use a String Escape tool?

How to use the tool

  1. Paste or type your string into the input field.
  2. Click Escape to convert special characters into safe sequences.
  3. Click Unescape to decode back to the original text.

Examples

Original string: {"name": "Alex", "note": "He said: "Hi!""}
Escaped: {\"name\": \"Alex\", \"note\": \"He said: \\\"Hi!\\\"\"}

Tips