What is obfuscated text?
Obfuscated text is text that has been changed so that it is harder for a program or a quick reader to recognise, while a person can often still read it. A text obfuscator does that change for you. This one works in five ways: look-alike letters, leetspeak, hidden characters, Unicode escapes and HTML entities.
Obfuscation is not secret-keeping. Anyone who knows the trick can undo it, and nothing is locked with a password. It makes text less obvious. It does not make it private.
How to obfuscate text with each option
Each option is a switch, and you can combine them. Here is what every one does to a short example.
- Look-alike letters: Latin letters are replaced with Cyrillic or Greek letters that look the same on screen.
Pay Accountlooks unchanged but is a different string. - Leetspeak: letters become numbers.
Hello WorldbecomesH3ll0 W0rld. - Hidden characters: an invisible zero-width space (U+200B) is added between letters, so
Spoilerlooks the same but is thirteen characters long instead of seven. - Unicode escapes: every character is written as a
\ucode, soHi!becomes\u0048\u0069\u0021. This is the form a JavaScript or JSON string can read. - HTML entities: every character is written as
&#x..;, some@example.combecomes a run of entities that a browser still shows as the normal address.
How text obfuscation works
Computers do not compare how text looks. They compare character codes. The Latin letter a is code U+0061. The Cyrillic letter а looks identical in most fonts but is code U+0430. To a person the two words are the same. To a search box, a database or a filter they are different.
Pay Account -> Рау Ассоυnt
Р = U+0420 (Cyrillic)
а = U+0430 (Cyrillic)
у = U+0443 (Cyrillic)
υ = U+03C5 (Greek) in place of uHidden characters work the same way from the other side. A zero-width space takes no room on the screen but is still a character in the text, so an exact match for the plain word no longer finds it.
Escapes and entities do not change how the text looks after it is displayed. They change how it is written in the source. A browser turns an entity back into its character when it draws the page, and a JavaScript engine does the same with a \u escape inside a string.
What happens when you combine options
The options run in a fixed order: leetspeak, look-alike letters, hidden characters, Unicode escapes, then HTML entities. Letters that leetspeak already turned into numbers are left alone by the look-alike step, so Hello World with both switched on gives Н3ll0 W0rlԁ: the H and the d are look-alikes, and e and o are digits.
Escapes and entities come last, because they write out whatever the earlier steps produced. If you turn on both, each character of the escape is itself written as an entity. That is valid, but it is mostly useful for seeing what each step does.
Good uses for obfuscated text
- Testing your own software. Paste look-alike and hidden-character text into a form or search to see whether your app treats it as the same word, rejects it or breaks. Developers use this to check username, filename and duplicate-detection logic.
- Learning and teaching. It shows clearly how look-alike spoofing works and why two strings that look equal can be different.
- Hiding an email address from the simplest scrapers. Entities mean the plain address is not sitting in the page source.
- Spoilers, puzzles, games and escape-room clues, where a little friction is the point.
- Writing a string into JavaScript or JSON source with Unicode escapes. For other escaping jobs, see JSON Escape and URL Encode.
Limits and side effects
- It is not encryption. Anyone can reverse every option here, so never use it to protect a password, a key or personal data.
- Email entities are a speed bump. A scraper that decodes HTML entities, which many do, still reads the address. A contact form protects an address better.
- Look-alike and hidden characters break search, spell check, sorting, copy and paste into other tools, and text-to-speech. Screen readers may read the text letter by letter or in the wrong language, so do not use it for text people must read.
- Mixing scripts inside a word is a known spoofing technique. Some platforms and security tools flag it, and some will block or remove the text.
- Do not use it to impersonate someone, trick a person, or get around a rule of a service you use. That is outside what this tool is for.
How to turn obfuscated text back
How easy it is to reverse depends on the option:
- Hidden characters: remove every U+200B. Most code editors can show invisible characters, and find and replace can delete them.
- Unicode escapes: they are valid JSON escapes, so JSON Unescape turns them back into readable text.
- HTML entities: paste them into any HTML page and the browser shows the original characters.
- Leetspeak: it is a many-to-one swap, because a 1 could be an i or an l, so read it in context.
- Look-alike letters: there is no safe automatic reverse, because a Cyrillic letter might be there on purpose. Retype the word, or paste it into a tool that reveals the code of each character.
Text obfuscation or code obfuscation?
This page is a text obfuscator. It changes words and sentences. It does not rename variables, remove whitespace or restructure a program, which is what a JavaScript obfuscator does to source code. If you are shipping a web app, a build tool such as a bundler with a minifier does that job at build time.
If you want text that can be turned back exactly, encoding is a better fit than obfuscation. See Base64 Encode for a reversible text-safe form.
Is my text uploaded?
No. The text is changed in your browser, and what you type is not sent to our servers. The Privacy Policy has the details.