Skip to main content

Fraction Cipher

The FractionCipher is part of the Kidscipher library.
It encodes and decodes text using mathematical fractions, where each letter is replaced by a specific fraction representation.


How It Works

Each letter is replaced by a unique fraction from 1/1 to 5/5.
The fractions are mapped alphabetically, starting with A = 1/1, B = 1/2, C = 1/3, and so on through the entire alphabet.


Example

Message:

HELLO

Encoded:

½ ⅖ ⅗ ⅗ ⅗

(Visual representation would show actual fraction glyphs)

Decoded:

hello

Map Table

LetterFractionGlyph
A1/1FRACTION_1_1
B1/2FRACTION_1_2
C1/3FRACTION_1_3
D1/4FRACTION_1_4
E1/5FRACTION_1_5
F2/1FRACTION_2_1
G2/2FRACTION_2_2
H2/3FRACTION_2_3
I2/4FRACTION_2_4
J2/5FRACTION_2_5
K3/1FRACTION_3_1
L3/2FRACTION_3_2
M3/3FRACTION_3_3
N3/4FRACTION_3_4
O3/5FRACTION_3_5
P4/1FRACTION_4_1
Q4/2FRACTION_4_2
R4/3FRACTION_4_3
S4/4FRACTION_4_4
T4/5FRACTION_4_5
U5/1FRACTION_5_1
V5/2FRACTION_5_2
W5/3FRACTION_5_3
X5/4FRACTION_5_4
Y5/5FRACTION_5_5

Demo

Encode Options

input
output

Decode Options

input
output
Mode: Encoding