JavaScript String Escape / Unescape

Escape string contents or decode standard JavaScript escapes without evaluation.

Scope: Unescape accepts common, hex, and Unicode escapes; it never evaluates JavaScript.

Workbench

Inputs stay on this page.