Home

Base64 Encoder / Decoder

Encode UTF-8 text or decode Base64 and Base64URL locally in your browser. Copy the output without putting your text in a share link.

Enter your numbers

Live calculation
Try an example:

Choose encode or decode. Empty input produces empty output.

Standard uses + and /. Base64URL uses - and _. Select the alphabet used by your data.

Text only, maximum 10,000 UTF-16 code units. Preserve spaces and line breaks when encoding. No input is saved in share links.

Results update as you type. Example values are editable.

Output text

UTF-8 bytes5
Output characters8

Base64 is encoding, not encryption. Input and output are not included in calculator links. No files are uploaded.

Inputs stay on this page. Reloading clears unsaved changes.

How it is calculated
UTF-8 text is converted into bytes, then each group of three bytes becomes four Base64 characters. With padding the encoded length is 4 × ceil(bytes / 3). Standard Base64 uses + and /; Base64URL uses - and _. Standard decode requires canonical padding; Base64URL accepts canonical padded or unpadded input. Whitespace is rejected unless explicitly enabled. Decode supports valid UTF-8 text only, not arbitrary binary files. Limit: 10,000 input UTF-16 code units. Empty text is supported.

Base64 Encoder / Decoder

CalcsDecoded.com

Output text

SGVsbG8=
Base64 is encoding, not encryption. Input and output are not included in calculator links. No files are uploaded.
Result breakdown
MeasureResult
UTF-8 bytes5
Output characters8

Inputs used

  • Action: Encode text to Base64
  • Alphabet: Standard Base64 (+ /)
  • Input text: Hello

Method and assumptions

UTF-8 text is converted into bytes, then each group of three bytes becomes four Base64 characters. With padding the encoded length is 4 × ceil(bytes / 3). Standard Base64 uses + and /; Base64URL uses - and _. Standard decode requires canonical padding; Base64URL accepts canonical padded or unpadded input. Whitespace is rejected unless explicitly enabled. Decode supports valid UTF-8 text only, not arbitrary binary files. Limit: 10,000 input UTF-16 code units. Empty text is supported.

Examples and assumptions

Convert text to Base64 or Base64URL and back. The operation runs in your browser; encoded text is not encrypted.

Encode Hello

SGVsbG8=

The five UTF-8 bytes encode to eight Base64 characters with one padding character.

Decode UTF-8 text

😀

The four UTF-8 bytes F0 9F 98 80 represent one emoji.

Unpadded Base64URL

SGVsbG8

Base64URL mode can omit padding; decode it using the same alphabet.

Before you use the result

  • Text only, up to 10,000 UTF-16 code units of input. File and arbitrary binary previews are not supported. Invalid UTF-8 is rejected without replacement characters.
  • Standard decode requires canonical padding. Base64URL accepts canonical padded or unpadded strings. Whitespace is rejected unless you enable ignoring ASCII spaces, tabs and line breaks.
  • Base64 is reversible encoding, not encryption. Never paste passwords, private tokens or production credentials into unfamiliar tools. This tool does not save input in links or browser storage.
Calculation checks and references

RFC 4648 reference vectors and independent Node Buffer comparisons cover ASCII, Unicode, both alphabets, padding, empty input, invalid bytes and strict decoding. HTML-like decoded output is displayed as text.

Reference cases checked: . Checks are automated reference calculations; an independent professional review is not claimed.

References explain definitions, rules or context; they do not endorse CalcsDecoded.com. See our calculation methodology for the testing and updating standard.

Frequently asked questions

Is Base64 encryption?

No. Anyone can decode Base64 without a key. It is an encoding for representing bytes as text.

Is my input included in a share link?

No. Only the calculator page link can be copied. Text is processed locally and is not saved in browser storage by this tool.

Why can valid Base64 fail to decode as text?

Base64 can represent arbitrary bytes, including images or compressed files. This tool requires those bytes to be valid UTF-8 text.

Why is my encoded text larger?

With padding, the character count is 4 × ceil(input bytes / 3). Around 33% overhead is an approximation for larger inputs, not every short string.