← All tools

JavaScript String Escaper

Represent text as JavaScript code points for inspection or source embedding.

Input

Input stays in this browser. Nothing is uploaded or stored.

Result

Run the tool to see its result here.

How to use this tool

Enter text, then copy the resulting expression into a trusted JavaScript source file.

When not to use it

Escaping is not encryption or a safe way to hide credentials.