Cipher Utility

Cipher Tools

23 free tools for classical ciphers, encoding and hashes. Paste a coded message below to see what it decodes to.

Examples

2. Possible readings

    All tools

    Cipher Utility reference card Index of 23 tools

    Cipher tools in one place

    Cipher Utility collects 23 small tools for working with coded text. The classical cipher tools encode and decode Caesar, ROT13, Atbash, Vigenère, autokey and rail fence messages, and the Vigenère decoder can break a message without the key. The encoding tools convert between text and Base64, hex, binary, URL and HTML encoding. The hash tools make and check MD5, SHA-1, SHA-256, SHA-512 and bcrypt hashes.

    Each tool page also explains how its method works.

    Cipher, encoding or hash?

    These three words get mixed up a lot. The difference decides which tool you need.

    TypeNeeds a keyCan be reversedExamples
    CipherUsuallyYes, with the keyCaesar, Vigenère, rail fence
    EncodingNoYes, by anyoneBase64, hex, binary, URL
    HashNoNoMD5, SHA-256, bcrypt

    A cipher is meant to hide a message, and the key is what keeps it hidden. ROT13 and Atbash are exceptions: they have no key, so they only hide text from a casual glance. Our introduction to the Caesar cipher is a good place to start.

    An encoding writes the same data in a different form so it can travel through systems that only accept certain characters. Base64 looks scrambled, yet anyone can decode it. Our article on why Base64 is not encryption goes into more detail.

    A hash turns any input into a fixed-length fingerprint and cannot be run backwards. It is used to check that a file has not changed and to store passwords. Why MD5 is no longer secure explains where hashes break down.

    How the quick decoder works

    The decoder at the top of the page runs every method it knows on your text. Base64, hex, binary, URL and HTML decoding only run when the text uses the right characters for that format. ROT13, Atbash and all 25 Caesar shifts run on any text with letters.

    Each result gets a score based on how much it looks like English: whether the characters are printable, how close the letter frequencies are to normal English, and how many common English words it contains. The best result goes to the top. For Caesar, only the best of the 25 shifts is shown.

    Text that is 32, 40, 64 or 128 hex characters long is probably a hash, and the decoder says so. If no result reads well, the message may use a keyword (try the Vigenère decoder) or a cipher the quick decoder does not cover yet.

    Your text stays in your browser

    Every tool on this site runs as JavaScript on your own device. Nothing you paste or type is sent to our server, and neither are the results.

    Frequently asked questions

    Are the tools free?

    Yes. Every tool on the site is free to use, with no account and no sign-up.

    Is the text I paste sent to a server?

    No. The tools run as JavaScript in your browser. What you type or paste is processed on your device and is never sent to our server.

    How do I decode a cipher if I don't know which one it is?

    Paste it into the quick decoder at the top of this page. It tries the common encodings and simple ciphers and ranks the results by how much they look like English. If nothing reads well, the text may use a keyword, and the Vigenère decoder can often recover it without the key.

    Can an MD5 or SHA-256 hash be decoded?

    No. A hash is a one-way fingerprint of the input, so there is nothing to decode. What you can do is hash a guess and compare it with the hash you have. The MD5 and SHA-256 tools can do that for you.

    What is the difference between a cipher and an encoding?

    A cipher hides a message and usually needs a key, such as the shift in a Caesar cipher or the keyword in Vigenère. An encoding such as Base64 or binary only changes how the data is written. Anyone can reverse it without a key.