Learn to calculate by playing with Base64 encoder and decoder
A short game to see where the result comes from. Pick a language and start; you can stop halfway and come back.
Loading the game…
← Back to Base64 encoder and decoder
What you will practise
Turn text into Base64 and recover the original text.
How it works
Bytes are grouped in threes and represented by four characters of the Base64 alphabet, which grows the size by about a third.
Formula
Encoded size ≈ original size × 4 ÷ 3
Alphabet: A-Z, a-z, 0-9, + and /
Worked example
The text “KalCum” encoded in Base64 is Q2FsY0h1Yg==
The trailing equals signs are padding to complete the block.
How to play
First pick your language. Then work through the challenges one by one: each sets out a case with real numbers and, if you get stuck, you can ask for a hint. When you answer, you see whether you got it right and why. Progress is saved only in your browser, so you can stop halfway and carry on another day.