// cipher + friend

Your friend for ciphers.

Encode, decode, and watch ciphers work, character by character. Everything runs in your browser — nothing is ever sent to a server, no logs, no analytics, no peeking.

// pick a cipher

filter:

Caesar Cipher

classical

Shift each letter by a fixed amount.

HELLO → KHOOR

ROT13

classical

Caesar with shift 13. Encoding and decoding are the same operation.

Hello, World! → Uryyb, Jbeyq!

Atbash

classical

Mirror the alphabet — A↔Z, B↔Y, C↔X, and so on.

HELLO → SVOOL

Vigenère

classical

Polyalphabetic shift — each letter moves by the matching letter of a repeating key.

ATTACK AT DAWN → LXFOPV EF RNHR

Rail Fence

classical

Write the message in a zigzag across N rails, then read off rail by rail.

WEAREDISCOVEREDFLEEATONCE → WECRLTEERDSOEEFEAOCAIVDEN

Affine

classical

Linear substitution: y = (a·x + b) mod 26. Caesar is the special case where a = 1.

AFFINECIPHER → IHHWVCSWFRCP

Bacon's Cipher

classical

Each letter as a 5-bit A/B pattern. The first ASCII-style binary, from 1605.

Hello → AABBB AABAA ABABB ABABB ABBBA

Polybius Square

classical

Each letter encoded as its (row, column) in a 5×5 grid. I and J share a cell.

HELLO → 23 15 31 31 34

Tap Code

classical

Each letter as two clusters of taps — row count, then column count. C and K share a cell.

HELLO → .. ... . ..... ... . ... . ... ....

Base64

encoding

Pack arbitrary bytes into the printable subset of ASCII.

Hello, World! → SGVsbG8sIFdvcmxkIQ==

Hex

encoding

Bytes as base-16 digits, two characters per byte.

Hello → 48656c6c6f

URL

encoding

Percent-encode characters that would break a URL.

hello world → hello%20world

Binary

encoding

Bytes as 8-bit binary, space-separated.

Hi → 01001000 01101001

Braille

encoding

Tactile script for the visually impaired. Six-dot patterns per letter (Grade 1).

Hello → ⠓⠑⠇⠇⠕

SHA-256

hash

One-way 256-bit cryptographic hash. Same input always yields the same digest.

Hello, World! → dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f

AES-GCM

modern

Modern authenticated encryption. AES-256 + PBKDF2-derived key from your passphrase.

Morse

fun

Dits and dahs. Letters separated by spaces, words by " / ".

SOS → ... --- ...

Reverse

fun

Read the input backwards. The simplest possible cipher.

Hello, friend! → !dneirf ,olleH

SpongeBob

fun

aLtErNaTiNg cAsE — encode and decode are the same operation.

hello world → hElLo WoRlD

Leet (1337)

fun

Substitute letters with lookalike digits. h3110 fr13nd.

hello friend → h3110 fr13nd

NATO Phonetic

fun

Spell each letter as its phonetic word: Alpha, Bravo, Charlie…

SOS → Sierra Oscar Sierra

Pig Latin

fun

Move the leading consonants to the end and add "ay". Vowel-starts get "way".

Hello friend → Ellohay iendfray

Frequency Analysis

analysis

Count how often each letter appears and compare to the English baseline.

The quick brown fox jumps over the lazy dog → 35 letters · top 5: O: 11.4%, E: 8.6%, H: 5.7%, R: 5.7%, T: 5.7%

23 of 23 ciphers