Atbash Cipher

Characters—
Words—

How Atbash Cipher is calculated: Each letter is replaced by its mirror in the alphabet: A becomes Z, B becomes Y, and Z becomes A. Applying Atbash twice returns the original text.

What the Atbash Cipher does

The Atbash cipher is the oldest simple substitution cipher still taught today: every letter is replaced by its mirror image in the alphabet, so A becomes Z, B becomes Y, and Z becomes A. It works entirely in your browser: you type or paste text, and the result appears at once, with nothing uploaded and nothing stored. People searching for a atbash cipher usually want exactly that — a quick answer without an account, a download, or a wait.

Puzzle fans hiding answers, students learning classical cryptography, and teachers making worksheets all use Atbash. It needs no key and no setup, which is why it shows up in puzzle hunts, crosswords, and classroom introductions to ciphers. Students use it for homework and puzzles, developers use it at work, and writers use it when a deadline is close. The common thread is simple: the job is small, the answer should be instant, and the text should stay private.

This page keeps that promise. The atbash Cipher runs on your own device, so your words never leave the tab. You can use it as often as you like, on any text, and close the page knowing nothing was saved anywhere — there is no history, no log, and no sign-up standing between you and the answer.

If you have never used a tool like this before, start with the example on this page and change one thing at a time — one word, one setting — and watch the result change. That is the fastest way to learn what each input does, and it works for every tool in this family, because they all follow the same pattern: text in, result out, nothing saved.

The method behind the Atbash Cipher

The cipher maps the alphabet onto itself in reverse. A is the 1st letter and Z is the 26th, so A maps to Z, B maps to Y, and so on down to Z mapping to A. Lowercase letters are mirrored the same way and keep their case, while numbers, spaces, and punctuation pass through untouched. Because the mapping is its own inverse, running the same text through Atbash twice returns the original. The rule this page uses is: Each letter is replaced by its mirror in the alphabet: A becomes Z, B becomes Y, and Z becomes A. Applying Atbash twice returns the original text.

Atbash has no key, so anyone who recognises the pattern can decode the message — it hides text from casual readers, not from anyone trying. It also works letter by letter, so word lengths and spaces stay visible, which gives a codebreaker the shape of the message for free.

Because the rule never changes, the same input always gives the same output. Run the example below twice and the result will match exactly, character for character. That predictability is what makes the tool useful for checking your own work. For a different kind of text job, the base64 encoder decoder covers the next step once you have your result. The comparison section further down this page explains which of the two fits which job, so you can pick before you paste.

The rule above is the whole method — there is no hidden step and no second pass. What you see in the rule is what the tool computes, which is why the worked example below can be followed by hand, one step at a time, with a pencil if you like.

The text you feed it

Any text works, but the cipher only changes letters. Numbers, spaces, and punctuation come out exactly as they went in, so 'Hello, World!' keeps its comma, its space, and its exclamation mark, and only the letters move.

The default text 'Hello World' becomes 'Svool Dliow'. H, the 8th letter, becomes S, the 19th; e, the 5th, becomes v, the 22nd. Count the positions yourself: 8 + 19 = 27, and 5 + 22 = 27 — every pair adds to 27, which is the quick check that a mirror is correct.

Keep the case of your input in mind. A capital H becomes a capital S, so a capitalised word stays capitalised after encoding. If you want the output to look like plain lowercase text, convert the case first.

When in doubt, try the worked example below first — it uses the page defaults, so it shows the tool working exactly as it ships.

Paste from anywhere — a document, a chat, a web page. The tool reads only the text you give it, so stray formatting, links, and images are left behind. If the pasted text looks odd, paste it as plain text first and then copy it in, so nothing invisible rides along.

A worked example

Take this input: 'Hello World'. Each letter is mirrored: H becomes S, e becomes v, l becomes o, o becomes l, the space stays, W becomes D, o becomes l, r becomes i, l becomes o, and d becomes w. The result is 'Svool Dliow' — 11 characters, 2 words, exactly the same length as the input.

Run 'Svool Dliow' through the tool again and you get 'Hello World' back, because Atbash is its own inverse. You can also check one letter by hand: S is the 19th letter, and 27 minus 19 is 8, which is H.

Try a single word: 'Atbash' becomes 'Zgyzhs'. A becomes Z, t becomes g, b becomes y, a becomes z, s becomes h, and h becomes s. The pattern is the same for every word, which is why the cipher is easy to learn and easy to spot.

You can check the result yourself without trusting the page. Reverse the operation — decrypt what you encrypted, or run the output back through the tool with the opposite setting — and the original input should come back. If it does not, the first thing to check is the input: a missing letter, an extra space, or a setting that changed between the two runs.

Who uses a Atbash Cipher — and why

A puzzle maker hides the answer to a riddle at the bottom of the page in Atbash, so readers who want the answer can decode it and readers who do not want spoilers can skip it. It is the kind of job that comes up often enough to remember, and rarely enough to justify installing anything for.

A teacher introduces substitution ciphers with Atbash before moving to Caesar and Vigenere, because it needs no key and the mirror rule can be shown on a single alphabet strip. The text reverser is the natural next stop when the result needs a different treatment. It answers the question this page leaves open, so the two together cover the whole job.

A game master writes clues in Atbash for a treasure hunt, knowing players can decode them with a printed alphabet and no computer.

Atbash Cipher vs ROT13 Encoder

The ROT13 encoder shifts every letter 13 places forward, while Atbash mirrors the alphabet. Both are their own inverse, and both are ciphers for fun rather than security. The ROT13 encoder is the closest comparison on this site, and the two answer different questions. Both are free, both run in your browser, and neither asks for an account.

Pick the atbash Cipher when you want a mirror image of the alphabet, the kind of pattern that shows up in old Hebrew texts and puzzle hunts. Pick the rot13 encoder when you want the classic internet spoiler-hider, where every letter moves by the same fixed shift.

In practice most people keep both bookmarked. They are small, free, and private, and switching between them costs nothing — paste the same text into each and compare the outputs side by side before deciding which one fits the job in front of you. The habit that saves the most time is deciding the job first and the tool second: once you know whether you need a cipher, a conversion, or a count, the choice between two similar tools is usually obvious.

Mistakes to avoid with a Atbash Cipher

Treating Atbash as security. It has no key and only 26 possible mappings, so anyone who suspects a substitution cipher can decode it in seconds. Use it for puzzles and spoilers, never for anything private.

Forgetting that spaces and punctuation survive. The word pattern of the message stays visible, so a short message like a single word is easy to guess from its length alone.

Encoding twice by accident. Because Atbash is its own inverse, running an encoded message through the tool again decodes it — handy when you mean to, confusing when a friend re-encodes your already-encoded text. Assuming it works on other alphabets. The mirror rule is defined for the 26-letter English alphabet, so accented letters and other scripts pass through unchanged. The fix in every case is the same: check the input, check the setting, and test with the worked example before trusting a long result.

If the result still looks wrong after checking the input, run the worked example exactly as written. If the example works and your input does not, the difference is in your input — compare them character by character, including spaces, until the odd one out shows itself.

How to use this Atbash Cipher

Type or paste your text and the mirrored result appears at once — there is no mode to pick, because the same function encodes and decodes. Copy the output and paste it wherever the message belongs. The case converter can help with the next step once you have your output.

If you are making a puzzle, encode the answer and decode it once yourself before publishing, to be sure the round trip is exact. For longer messages, break the text into short lines so the shape of the words does not give the answer away.

The result can be copied with the buttons above it, or shared and printed from the actions on the page. If you use the tool often, bookmark the page — the address never changes, and your last input is not saved, so a fresh visit always starts clean. That also means there is nothing to clear and nothing to log out of when you are done.

Everything on this page is free, with no account and no limit on how often you use it. Your text is processed in your browser and never sent to a server, so drafts, names, and private notes stay on your device. If the result looks wrong, check the input first — a stray space or a missing character is the cause far more often than the tool itself.

Frequently Asked Questions

No. Atbash has no key, so anyone who recognises the pattern can reverse it. It is a puzzle and teaching cipher, not a way to protect private information.

Run it through the same tool again. Atbash is its own inverse, so encoding an encoded message returns the original text.

No. Only the letters A to Z and a to z are mirrored. Numbers, spaces, and punctuation pass through unchanged.

It comes from Hebrew: the first, second, last, and second-last letters of the Hebrew alphabet (Aleph, Tav, Beth, Shin). The same mirror idea applied to the Hebrew alphabet predates its use with English letters by centuries.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.