Skip to main content

JavaScript String and CSS Identifier Escaper

Escape text as a quoted JavaScript string literal or CSS identifier locally. CSS string values and HTML entities use different tools; output is not a security filter.

Produces a quoted JavaScript string literal. It is not a template literal, HTML-safe script encoder, or security filter. Maximum 100,000 UTF-16 code units.

Was this tool helpful?