← All calculators / Computing

Base64 encode / decode

Text-oriented UTF-8 conversion.

01 / Your inputsBrowser-only calculation
Base64 encode / decode
—
How it works

The formula

UTF-8 bytes encoded as Base64 groups

Example inputs

Text: Hello world · Operation: Encode

Result: SGVsbG8gd29ybGQ=

What the Base64 encode / decode works out

This page computes base64 encode / decode. The Base64 encode / decode applies the formula UTF-8 bytes encoded as Base64 groups. Text-oriented UTF-8 conversion.

What each field means

Text
Entered as text rather than a single number — the example uses Hello world. Keep the same separators shown there.
Operation
Choose between Encode, Decode. The worked example below uses Encode, and switching it changes which rule set the calculator applies.

A worked example

With the values this page opens on — Text Hello world, Operation Encode — the answer is SGVsbG8gd29ybGQ=. Reset restores exactly these numbers.

Reading the result

The headline number is base64 encode / decode. Change any field and the figure, along with the graph beside it, is recomputed from the values you typed — nothing is rounded before the arithmetic runs.

Assumptions and limits

Text-oriented UTF-8 conversion. Base64 is encoding, not encryption. Invalid Base64 or invalid decoded UTF-8 is rejected.

Your privacy

Nothing you type leaves your browser.

Related calculators

URL encode / decode ↗ · IPv4 subnet ↗ · Password generator ↗ · Bandwidth / transfer time ↗