Home · Everyday · Tech, Text & Media · Base64 Encoder & Decoder

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back — UTF-8 safe both ways.

Your figures

Example result — edit the figures to make it yours

SGk=

Base64

Base64 writes every 3 bytes as 4 characters from a 64-symbol alphabet, padding with = — the text grows by about a third. The input is encoded as UTF-8 bytes first. The headline figure is the byte count.

Output length4
Bytes2

What this calculator does

Encode text to Base64 or decode Base64 back — UTF-8 safe both ways. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Base64 writes every 3 bytes as 4 alphabet characters, = padding

Text is processed as Unicode characters; encodings report byte counts where bytes matter.

Classical ciphers (Caesar, Vigenère, Morse) follow their published historical definitions.

These ciphers are for learning and puzzles — they are not secure encryption.

Worked example

With the example inputs this page opens with, the result is SGk= — base64. Base64 writes every 3 bytes as 4 characters from a 64-symbol alphabet, padding with = — the text grows by about a third. The input is encoded as UTF-8 bytes first. The headline figure is the byte count.

Quick reference

Quick reference — the worked example in full
FigureValue
Base64SGk=
Output length4
Bytes2

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Base64 Encoder & Decoder work?

Encode text to Base64 or decode Base64 back — UTF-8 safe both ways. Text · Direction → Base64 or text. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Base64 Encoder & Decoder need?

Text · Direction → Base64 or text. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Base64 Encoder & Decoder free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.