Início
Tom Utilities

Escape / unescape JavaScript

HTML, CSS e JavaScript

Escapa texto em um literal de string JavaScript seguro ou decodifica uma string escapada.

Entrada

Resultado

Como usar

Escaping JavaScript strings

Encode escapes quotes, backslashes and control characters. Decode reverses the process.

  1. Paste text or a literal.
  2. Press Encode or Decode.
  3. Copy the result.

Perguntas frequentes

Which quote style is used?

Single quotes are used by default and inner quotes are escaped accordingly.

Does it handle unicode?

Yes, non ASCII characters are preserved or escaped using unicode escape sequences.