Dev Tools

JavaScript String Escaper

Escape text so you can paste it into JavaScript/TypeScript source code as a string literal.

Quote
Input
Escaped JS literal
"Hello\n\"world\""
Was this page helpful?

Related tools