Cipher and Encoding Tool

Convert text between twenty encodings, ciphers and hashes, all in your browser.

Cipher and Encoding Tool

Enter some input text and type, or let the tool detect it, and encode/decode or cipher your text in your deired format.


Load an example

Input

Output

0 characters in

Overview

Our Cipher and Encoding Tool is a free, browser-based tool that translates text between twenty different formats. You tell the tool how to read the input, from plain text to Base64, hexadecimal, Morse, a Caesar cipher and more, and you tick one or more output formats in the Convert to dropdown. The tool decodes the input to plain text, then encodes that text into every format you selected, updating live as you type. Nothing is uploaded and nothing is stored; every calculation happens on your own device.

It is useful whenever you meet text that is not what it seems. A string that looks like nonsense may be Base64, a row of letters may be a Caesar shift, a list of numbers may be code points, and a wall of dots and dashes is almost certainly Morse. Instead of opening a different tool for each guess, the auto-detect reads the input for you, and the output panel shows the result in as many formats as you select. It is equally handy in the other direction: convert one message into any of the supported encodings for a lesson, a puzzle or an integration test.

The page is written in plain HTML, CSS and JavaScript, and every algorithm is implemented directly in the browser: numeric bases, Base64, HTML entities, the classic ciphers, the telegraph codes and the hash functions. There is no server, no account and no third-party library, so it stays fast, works offline once loaded, and keeps your content private.


What Is a Cipher and Encoding Tool?

A converter changes the same information from one representation to another. An encoding is a fixed, reversible rule that keeps data intact while making it safe for a particular channel: Base64 to carry bytes in text, HTML entities to put reserved characters in a web page, binary or hexadecimal to show a value the way a machine stores it. A cipher also transforms text, but its purpose is to hide meaning, usually with a key; Caesar, Vigenere, Atbash, ROT13, Pigpen and Enigma are all ciphers. A hash is different again: it is a one-way fingerprint that cannot be turned back into the original text.

This tool combines all three kinds in a single workspace. Because every format can be decoded to plain text and encoded from plain text, any format can be converted into any other. That is the same modular idea used by the classic online cryptography tools: decode the source, change representation, then encode the target.


What This Tool Does

Auto-detects the input: the "Interpret input as" selector can be left on Auto-detect, which tests the input against Base64, hexadecimal, binary, decimal, Morse, HTML entities and Roman numerals and decodes with the first match that produces readable text. You can also pick the input format explicitly for full control.

One or more outputs: the "Convert to" dropdown lists every output format with a checkbox. Tick as many as you like; each selected format gets its own labeled field with a Copy button, kept compact when several are shown at once.

Helpful feedback: formats that cannot represent everything say so instead of failing silently. Roman numerals ask for a number, hashes are output-only, and Morse, ITA2 and Navajo report characters they had to skip.

Everyday conveniences: live updates, file upload, one-click copy on every output field, Copy all and Download all links at the bottom, and a stats line under the output that reports the decoded size and the detected input format.


The Formats Explained

Plain Text: the readable form and the hub of the whole tool. Every other format is decoded back to plain text before it is re-encoded, so choosing Plain Text as the output simply returns what was decoded from the input.

Flipped: reverses the order of the characters. You can reverse the whole text, each line, or each word. It is a simple visual obfuscation rather than a cipher.

Leetspeak: replaces letters with similar-looking symbols and digits, such as e to 3, o to 0 and l to 1. The built-in intensity replaces every eligible letter. Decoding is best-effort because one symbol can stand for more than one letter.

HTML Entities: writes characters as HTML references. Non-ASCII characters and the reserved special characters are escaped in decimal form, so the result is safe inside a web page.

Decimal, Octal, Binary and Hexadecimal: show each character as the number of its Unicode code point in base 10, 8, 2 or 16, separated by spaces, in lowercase form and without a prefix. These are the tool's built-in defaults for the numeric formats.

Base64: encodes bytes using a 64-character alphabet, the standard way to carry binary data in text such as email attachments or data URLs. The standard alphabet is used with padding kept.

Roman Numerals: a number notation that works on values from 1 to 3999. Because Roman numerals represent quantities, not letters, this format expects numbers as input and returns numbers when decoded.

Atbash: a substitution cipher from the ancient Near East that reverses the alphabet, mapping A to Z, B to Y and so on. It needs no key and is its own inverse, so encoding and decoding are the same operation.

Caesar and ROT13: shift every letter by a fixed amount. Caesar uses a shift of 3 in this tool; ROT13 is the special case of a shift of 13, which is also its own inverse. Non-letters are left untouched and case is preserved.

Vigenere: a polyalphabetic cipher that shifts each letter by a different amount taken from a repeating keyword. It is much stronger than a single Caesar shift, though still not secure by modern standards.

Pigpen: a symbol cipher historically used by secret societies, in which each letter is a fragment of a grid. Because pigpen has no official Unicode block, this tool uses a distinct Unicode symbol for each letter, so it encodes and decodes reliably but is an approximation of the hand-drawn original.

Morse Code: the telegraph alphabet of dots and dashes. Letters are separated by spaces and words by a slash.

ITA2 / CCITT-2: the five-bit teleprinter code also known as Baudot-Murray. It uses letter and figure shifts to cover letters, digits and punctuation, and the tool outputs the raw five-bit groups.

Navajo Code: the famous World War II code in which each English letter was spoken as a Navajo word. The tool maps each letter to its code word and decodes the words back to letters.

Enigma Machine: simulates the German Enigma I with three rotors, reflector B and an optional plugboard. The tool uses the default rotors I II III at positions AAA with no plugboard, and the machine is symmetric, so the same settings reverse the operation.

MD5 and SHA-1: cryptographic hash functions that turn any text into a fixed-length fingerprint, 32 or 40 hexadecimal characters. Hashing is one-way, so these two formats appear only as outputs and are not offered as inputs.


How to Use the Tool

The tool works in two steps. It first decodes whatever you pasted into plain text, then encodes that text into every output format you have ticked. Live mode keeps both steps running as you type, so results appear without pressing Convert.

Start by choosing how to read the input. Leave "Interpret input as" on Auto-detect for unknown content, or pick the exact format, such as Base64 or Morse, when you know it. Then paste or type the content, or load a .txt file with the upload control.

Next, choose the output. Open the "Convert to" dropdown and tick one or more formats. Each selected format gets its own labeled field in the output panel, with a Copy button of its own, and the fields stay compact when several are shown.

Finally, collect the results. Copy any field individually with its own Copy link, or use the Copy all and Download all links at the bottom of the output panel, which produce a labelled list with one format per line.


Encoding vs Encryption vs Hashing

Encoding changes the form of data without hiding it: Base64, hexadecimal, binary, HTML entities and Morse all keep the original recoverable by anyone who knows the rule. Encodings are about compatibility and safe transport, not secrecy.

Encryption changes data so that it cannot be read without a key. The ciphers here, namely Caesar, Vigenere, Atbash, ROT13, Pigpen and Enigma, are historical and educational. They are fun to explore and useful in puzzles, but they are not considered secure and must never be used to protect real secrets, passwords or personal data. Use a modern, well-reviewed encryption tool for anything that matters.

Hashing turns data into a fixed-length fingerprint that cannot be reversed. The same input always produces the same hash, and even a tiny change produces a completely different one. Hashes are used to check that a file is unchanged or to store password verifiers, never to recover the original text. Note also that MD5 and SHA-1 are old and are no longer considered collision-resistant for security work.


Common Use Cases

Identifying unknown text: paste a puzzling string, leave the input on Auto-detect and read the Plain Text output. When it suddenly shows words, you have found the encoding, and the stats line tells you which one was detected.

Decoding a single layer: choose the matching input format to turn Base64, hexadecimal, binary, HTML entities, Morse or a Caesar message back into readable text.

Preparing data for code: produce Base64 for an embed, hexadecimal or binary for a low-level routine, or HTML entities for a page, and tick several formats at once when you need more than one.

Teaching and learning: tick several output formats and compare how the same sentence looks in each encoding or cipher, then let students try to reverse a Vigenere or Enigma message.

Puzzles and escape rooms: create a trail by layering formats, for example Caesar then Base64 then hexadecimal, and hand the final string to the solver.

Quick fingerprints: produce an MD5 or SHA-1 digest to compare two short strings or to demonstrate how a hash changes when the input does.


Examples

Click Try it on any example to load it into the tool. Each one sets the input format and the output format, and the values shown are exactly what the tool produces.

Example 1: Shifting a sentence with Caesar
Input (Plain Text)
Meet me at the pier
Output (Caesar Cipher, shift 3)
Phhw ph dw wkh slhu

With a shift of 3 every letter moves three places along the alphabet. The Base64 encoding of the same sentence is TWVldCBtZSBhdCB0aGUgcGllcg==; tick Base64 in the output dropdown to see it as well.

Example 2: The distress signal in Morse
Input (Plain Text)
SOS
Output (Morse Code)
... --- ...

The three letters map to their dot-and-dash codes, separated by spaces. Setting the input to Morse instead would decode the same signal back to SOS.

Example 3: Decoding Base64 to plain text
Input (Base64)
U2lsZW50IG5pZ2h0IG9uIHRoZSBiYXk=
Output (Plain Text)
Silent night on the bay

Setting the input format to Base64 recovers the sentence in the Plain Text output. From there, tick any other format in the output dropdown to re-encode the decoded text.

Example 4: A year as Roman numerals
Input (Plain Text)
2026
Output (Roman Numerals)
MMXXVI

Roman numerals describe quantities, so the input must be a number between 1 and 3999. Decoding works in reverse: MMXXVI becomes 2026.

Example 5: Cracking a Caesar shift
Input (Caesar Cipher)
Phhw ph dw wkh slhu
Output (Plain Text, shift 3)
Meet me at the pier

Set the input format to Caesar Cipher and the shift to 3, and the gibberish becomes a sentence. Try other shifts until the Plain Text output makes sense.


Reference Table: One Word, Twenty Formats

The word Hello in every supported format, using the tool's built-in defaults. This shows at a glance how differently the same five characters can be represented.

Format Output for “Hello”
Plain TextHello
FlippedolleH
LeetspeakH3110
HTML Entities (non-ASCII + special)Hello
Decimal72 101 108 108 111
Binary1001000 1100101 1101100 1101100 1101111
Octal110 145 154 154 157
Hexadecimal48 65 6c 6c 6f
Base64SGVsbG8=
Roman NumeralsNumbers only
AtbashSvool
Caesar Cipher (shift 3)Khoor
ROT13Uryyb
Vigenere Cipher (key LEMON)Sixzb
Pigpen⊣⊾⊟⊟◰
Morse Code.... . .-.. .-.. ---
ITA2 / CCITT-210100 00001 10010 10010 11000
Navajo CodeTSE-GAH AH-JAH DIBEH-YAZZIE DIBEH-YAZZIE A-KHA
Enigma Machine (default)Ilbda
MD58b1a9953c4611296a827abf8c47804d7
SHA-1f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0

Some values use the tool's built-in defaults: the Caesar result assumes a shift of 3, the Vigenere result a key of LEMON, and the Enigma result the default rotors I II III at positions AAA with no plugboard.


Tips and Best Practices

Start with Auto-detect: when you do not know the encoding, let the tool recognise it. The stats line under the output tells you which format was detected, and you can always override it by picking one explicitly.

Decode before you re-encode: if the input is already encoded, set the input format first. The output formats are applied to the decoded text, so choosing the wrong input gives meaningless results.

Base64 is not encryption: anyone can decode it. Use it to carry data, never to protect it.

Watch the limited formats: Morse, ITA2 and Navajo cover only certain characters, Roman numerals need numbers, and hashes cannot be reversed. The tool flags anything it had to skip or cannot do.

Enigma settings are fixed here: the tool uses the default rotors I II III at positions AAA with no plugboard. A message encrypted with different settings will not decode correctly.

Verify a hash, do not trust it blindly: MD5 and SHA-1 are useful for quick comparisons and teaching, but they are no longer recommended for security because collisions can be constructed.


Security Note

The ciphers on this page are historical and educational. Caesar, Atbash, ROT13, Vigenere, Pigpen and even the Enigma machine have all been broken, and none of them is suitable for protecting real information. Treat their output as a puzzle, not as security. For actual confidentiality, use modern, reviewed encryption with a strong key, and never put passwords, financial details or personal data into a classical cipher. Everything here runs locally in your browser, so your input is not sent anywhere, but that privacy does not make the ciphers themselves secure.


FAQs

FAQ 1: Is this tool free and private?
Answer: Yes. It is completely free, with no sign-up and no watermark. Every conversion runs in your browser, so the text you paste is never uploaded, logged or stored on any server.

FAQ 2: What is the difference between encoding, encryption and hashing?
Answer: Encoding changes the form of data but keeps it recoverable by anyone who knows the rule, such as Base64 or hexadecimal. Encryption hides data so it cannot be read without a key. Hashing turns data into a one-way fingerprint that cannot be reversed. This tool includes examples of all three.

FAQ 3: Are the ciphers here secure enough for real secrets?
Answer: No. The ciphers are historical and educational and are easy to break. They are fine for puzzles, lessons and demonstrations, but you should never use them to protect passwords, private messages or personal data. Use modern encryption for anything that matters.

FAQ 4: Why can I not use MD5 or SHA-1 as an input?
Answer: Because hashing is a one-way operation. A hash is a fixed-length fingerprint with no way to recover the original text, so MD5 and SHA-1 appear only as outputs. They are also old algorithms that are no longer collision-resistant, so they are best used for comparisons and teaching rather than security.

FAQ 5: How does the auto-detect work?
Answer: When "Interpret input as" is left on Auto-detect, the tool tests the input against the formats that have a recognisable shape: Base64, hexadecimal, binary, decimal, Morse, HTML entities and Roman numerals. The first format that decodes cleanly to readable text wins, and the stats line under the output tells you which one was chosen. You can always override it by picking a format explicitly.

FAQ 6: Why does the Morse, ITA2 or Navajo result drop some characters?
Answer: These codes have a limited character set. Morse and ITA2 cover letters, digits and common punctuation, while the Navajo code maps the Latin alphabet. Any character outside the set is skipped or kept as-is, and a note under the output field tells you something was left out.

FAQ 7: Can I convert one encoding directly into another?
Answer: Yes. Pick the input format so the tool can decode it to plain text, then tick the target format in the "Convert to" dropdown. For example, set the input to Base64 and the output to Hexadecimal to see the bytes behind the encoded text.


Tools Worth Trying

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.