How the substitution works
Atbash lines the alphabet up from both ends: A becomes Z, B becomes Y, C becomes X, all the way to M becoming N and N becoming M. The thirteenth letter is the hinge, with M and N mirroring each other. H turns into S and e turns into v, so Hello World becomes Svool Dliow. The rule was used with Hebrew scripture, where the name Sheshach in Jeremiah reads as Babel once decoded this way. It later moved onto the Latin alphabet and became the first substitution cipher in most cryptography courses.
Order of operations
- Paste the text into the input box. Mixed Chinese and English needs no cleanup first.
- Click Reverse letters and the result appears immediately. Run Hello World once and confirm you get Svool Dliow; that tells you the mapping is aligned.
- Click Copy. To restore, paste the result back and click Reverse letters again, because the rule is its own inverse — encrypting and decrypting are the same action.
- Use Clear to start over, or Example to load the built-in demo string.
What changes and what does not
Only the 26 Latin letters are substituted, and case stays within its own table: uppercase H becomes uppercase S, lowercase h becomes lowercase s. Chinese characters, digits, punctuation, spaces and line breaks pass through untouched and keep their positions, so the character count matches the source and you can compare position by position. The flip side is that Chinese-heavy text looks almost unchanged after processing, which is the rule working as designed rather than a failure.
Checks and caveats
To verify the math yourself, spot-check two positions: the first letter of the source should map A to Z, and a mid-string M should become N. The self-inverse property gives you a second check: process the same string twice and the output must match the original exactly. If the second pass does not restore it, something was edited by hand or a non-letter character slipped in.
When not to use it
There is no key, so anyone can reverse the output on this same page. Never protect passwords, ID numbers or contract text with it. Reasonable uses are teaching classical cryptography, designing escape rooms and puzzles, giving text a light disguise so it does not read as plain text, or as one recognizable layer in a beginner CTF challenge.