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
Enter your string
Any text, including special characters.
- 2
Pick an escape style
Hex, Unicode, fromCharCode, or HTML entities.
- 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.
Related Tools
Base64 EncoderEncode text and binary data as Base64Base32 EncoderEncode or decode Base32 per RFC 4648URL EncoderPercent-encode and decode URLsHash GeneratorGenerate MD5, SHA-1, and SHA-256 hashesHMAC GeneratorCreate HMAC signatures with a secret keyBcrypt GeneratorHash and verify passwords with bcryptPassword GeneratorStrong random passwords with strength indicatorPassphrase GeneratorGenerate memorable multi-word passphrases