String Obfuscator

Obfuscate a string with Base64 encoding, Unicode escaping, or character shifting to make it harder to read at a glance, and restore it again for the reversible modes. Obfuscation is not encryption.

FreeOnline Tool
Loading…

How to Use

  1. Paste or type the string you want to obfuscate into the input box.
  2. Choose an obfuscation method (Base64, Unicode escaping, character substitution, and so on).
  3. Click Obfuscate and the output box shows the obfuscated result.
  4. To restore a string, paste the obfuscated content and click Restore.
  5. Click Copy to grab the obfuscated result.

Features

  • Several obfuscation methods: Base64 encoding, Unicode escaping, character shifting, and more.
  • Works in both directions, so you can obfuscate and restore.
  • Preview the obfuscated output in real time.
  • Suited to lightly protecting things like email addresses and contact details.
  • Everything runs in the browser and no data is uploaded.

Use Cases

Hiding email addresses on a web page
Lightly obfuscate a contact email published on a page so scrapers cannot grab it directly, which cuts down on spam.
Light protection for config files
Obfuscate non-critical configuration strings so ordinary users cannot read the plain text at a glance.
Front-end code protection
Obfuscate string constants inside JavaScript to make the code harder to read and shield your business logic a little.
Generating test data
Produce obfuscated strings as test input to check how a system copes with unusual encodings.

FAQ

Is string obfuscation the same as encryption?
No. Obfuscation only makes content harder to read directly and provides no real cryptographic security. If you need to protect sensitive data, use a proper encryption algorithm such as AES.
Can obfuscated text be restored?
It depends on the method. Base64 and Unicode escaping are fully reversible, but an irreversible character substitution cannot be turned back into the original content.
Can I use it to protect source code?
It offers light protection and raises the effort required to read the code, but it is no real defense against serious reverse engineering. In production, combine it with other security measures.
Does it work with Chinese text?
Yes. The tool handles Chinese characters just as well, and in Unicode escape mode they are converted to \uXXXX form.