String Escaper / Unescaper

Convert raw text into string literals for programming (JSON, Java, JS). Handles quotes, backslashes, and newlines.

Ad Space (Top Banner)
Settings
Actions
Options

Common Escape Sequences

Sequence Description
\n New Line
\t Tab
\" Double Quote
\' Single Quote
\\ Backslash
\r Carriage Return
\b Backspace
Ad Space (Bottom Banner)

Why escape strings?

In programming, strings are usually surrounded by quotes. If your text contains quotes (like He said "Hi"), it breaks the code. You must "escape" these characters using a backslash (\).

Additionally, multi-line text cannot be pasted directly into languages like Java or JSON. You must convert line breaks into \n characters.

Supported Languages