FreeDev Tools

String Obfuscator

Turn strings into JavaScript escape sequences (\x41, \u0041) or char-code arrays.

Runs locally in your browser. Your input is not uploaded.

How to Use

  1. 1

    Enter your string

    Any text, including special characters.

  2. 2

    Pick an escape style

    Hex, Unicode, fromCharCode, or HTML entities.

  3. 3

    Copy into your code

    The escaped form evaluates to the identical string.

Frequently Asked Questions

Hex escapes (\\x61), Unicode escapes (\\u0061), a String.fromCharCode(...) expression, or HTML numeric entities (a) — all functionally identical to the original string.