Ciphertext
Ciphertext is the unreadable output of a cipher or encryption algorithm. This guide explains what ciphertext is, how it differs from plaintext, the main types of ciphertext, and how to decode it with free online tools.
What is ciphertext?
Ciphertext is the scrambled, unreadable output produced by applying a cipher or encryption algorithm to plaintext. It is what you see when you look at encrypted or encoded data. For example, encrypting "HELLO" with a Caesar cipher shift of 3 produces "KHOOR." "KHOOR" is the ciphertext. The original message "HELLO" is the plaintext.
The term applies to both encryption and encoding. Encryption uses a secret key to produce ciphertext that cannot be reversed without the key. Encoding uses a publicly known algorithm to transform text for transmission or storage, and anyone with the algorithm can reverse it. Base64, hexadecimal, and Morse code all produce ciphertext in the encoding sense. AES, RSA, and classical ciphers with unknown keys produce ciphertext in the encryption sense.
Ciphertext vs plaintext
Plaintext is the original readable message before encryption. Ciphertext is the scrambled output after encryption. The cipher or encryption algorithm transforms plaintext into ciphertext, and the decryption algorithm reverses the process to recover the plaintext. The relationship is straightforward:
The key observation is that the same algorithm handles both directions. Encryption applies the transformation forward. Decryption applies it in reverse. For symmetric ciphers like Caesar and AES, the same key works for both directions. For asymmetric ciphers like RSA, different keys handle encryption and decryption.
Types of ciphertext
Substitution ciphertext
Each letter in the plaintext is replaced by a different letter or symbol. The Caesar cipher shifts letters by a fixed amount. The Atbash cipher reverses the alphabet. A general substitution cipher uses an arbitrary mapping. Frequency analysis can break these because the frequency of letters is preserved. Tools: Caesar, Atbash, Substitution.
Polyalphabetic ciphertext
Each letter is shifted by a different amount determined by a keyword. The Vigenere cipher is the classic example. It defeats simple frequency analysis because the same plaintext letter can map to different ciphertext letters depending on its position. Tools: Vigenere, Autokey, Beaufort.
Encoding ciphertext
Data is transformed for transmission or storage using a publicly known algorithm. No secret key is involved. Base64 encodes binary data as ASCII text. Hexadecimal represents bytes as pairs of hex digits. Morse code represents letters as dots and dashes. These are reversible by anyone who knows the algorithm. Tools: Base64, Binary, Morse code, Hex.
Transposition ciphertext
The letters of the plaintext are rearranged without changing their identities. The rail fence cipher writes text in a zigzag pattern and reads it off by rows. Columnar transposition writes text into a grid and reads it off by columns. Frequency analysis does not break these because the letter frequencies are unchanged. Tools: Rail fence.
How to decode ciphertext
Decoding ciphertext requires knowing which cipher or encoding produced it. The approach depends on what you know:
If you know the cipher
Open the corresponding decoder tool. For Caesar ciphertext, use the Caesar cipher decoder which tries all 25 shifts. For Vigenere, use the Vigenere cipher tool with the known key. For Base64, use the Base64 decoder.
If you do not know the cipher
Paste the ciphertext into the code identifier to get a ranked list of candidates with confidence scores. Or use the multidecoder which runs all decoders at once and shows every result that produces readable output.
If it is encrypted with an unknown key
For classical ciphers, use brute force or frequency analysis to recover the key. For Vigenere, use the auto solver which applies Kasiski examination and chi-squared analysis to recover the keyword automatically.
Ciphertext examples
Each line above is the ciphertext for the plaintext "HELLO WORLD" using a different cipher or encoding. The encoding examples (Base64, hex, binary, Morse) can be reversed without a key. The cipher examples (Caesar, ROT13, Atbash) can be reversed without a key because the key is fixed or publicly known. A Vigenere cipher with an unknown keyword would require cryptanalysis to break.
Cipher tools for decoding ciphertext
Frequently asked questions
What is ciphertext?
Ciphertext is the scrambled, unreadable output produced by applying a cipher or encryption algorithm to plaintext. It is what you see when you look at encrypted or encoded data. For example, encrypting HELLO with a Caesar cipher shift of 3 produces KHOOR. KHOOR is the ciphertext.
What is the difference between ciphertext and plaintext?
Plaintext is the original readable message before encryption. Ciphertext is the scrambled output after encryption. The cipher or encryption algorithm transforms plaintext into ciphertext, and the decryption algorithm reverses the process to recover the plaintext.
How do I decode ciphertext?
Decoding ciphertext requires knowing which cipher or encoding produced it. If you know the method, use the corresponding decoder tool. If you do not know the method, paste the ciphertext into the code identifier to get a ranked list of candidates, or use the multidecoder that runs all decoders at once.
Is ciphertext the same as encrypted text?
Ciphertext includes both encrypted text and encoded text. Encryption uses a secret key to produce ciphertext that cannot be reversed without the key. Encoding uses a publicly known algorithm to transform text for transmission or storage, and anyone with the algorithm can reverse it. Both produce ciphertext, but only encryption provides security.
Cipher vs cypher
Cipher and cypher mean the same thing. "Cipher" is the standard American English spelling. "Cypher" is the British English spelling and is also common in puzzle and gaming communities. Both terms refer to the cryptographic method of transforming plaintext into ciphertext. The tools on this site work regardless of which spelling you search for.