Skip to content

Base64 encode

EncodeExperimentalLimited support. Verify anything critical.

Base64 encoding turns UTF-8 text into bytes, then maps each three-byte group to four characters from the standard ASCII alphabet (A–Z, a–z, 0–9, +, /), adding equals-sign padding when the final group is short. The local file option reads selected file bytes and applies the same representation, up to 25 MB. Base64 makes binary data safe to carry through text-only systems such as headers and APIs, but it does not encrypt or protect the contents; anyone can decode it.

Skip to the tool

This tool processes text on your device. The text is not uploaded.

  • Encodes UTF-8 text or files up to 25 MB. File bytes are read into browser memory.
  • Do not paste production secrets you cannot rotate.

Steps

Paste text or choose a file

Type UTF-8 text, or pick a local file up to 25 MB. The file is read in this tab only.

Run locally

Bytes are grouped into 24-bit blocks and mapped to the Base64 alphabet with padding as needed.

Copy or download the string

Take the ASCII result for headers, data URIs, or API payloads — remember it is not encryption.

How to use Base64 encode

Technical overview (RFC 4648)

The encoder processes input in 3-byte (24-bit) tuples, splits each into four 6-bit indexes, and looks those indexes up in the standard alphabet. Remaining 1 or 2 bytes produce padding with = or ==.

Practical uses
  • HTTP Basic credentials packaging (Authorization: Basic …)
  • Small data URIs for icons or fonts
  • Embedding binary-safe payloads in JSON or YAML manifests
Security note

Base64 is not encryption. Anyone can decode the string. Encrypt first if you need confidentiality, then Base64 only for transport packaging.

How it works

  1. Enter what you haveType or pick your text. Nothing is submitted anywhere.
  2. It runs in this tabThe calculation happens on your device, using your browser's own data.
  3. Take the resultRead the text, then copy or download.

Reimplemented locally. Not derived from IT-Tools source.

Basis
independent
Licence
MIT
Last reviewed

Frequently asked questions

Is Base64 encoding a form of encryption?

No. Base64 is an open, deterministic binary-to-text representation scheme (RFC 4648). It provides zero confidentiality, as anyone can decode it instantly without a cryptographic key.

Why does Base64 output sometimes end with one or two equals signs (=)?

The equals sign is padding. Base64 processes data in 3-byte (24-bit) blocks. When the input length is not divisible by 3, one or two '=' characters pad the output to maintain 4-character alignment.

What is the size overhead of Base64 encoding?

Base64 expands data by approximately 33% (4 output ASCII characters for every 3 input bytes), plus optional padding characters.

How does this tool handle international Unicode characters?

The tool encodes multi-byte UTF-8 code points directly into byte sequences before applying the 6-bit ASCII transformation, ensuring full support for non-Latin alphabets and emojis.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close