Base64 Encode
Encode text or files to Base64 format.
When to use this tool
Base64 encoding is fundamental for transmitting binary data over text-based protocols like HTTP, JSON, email (MIME), and JWTs. Developers use it daily to encode API payloads, embed images in CSS or HTML, and store binary data in databases.
How to use
How this works
How this works
Base64 represents binary data with a text-safe alphabet made from A-Z, a-z, 0-9, plus, slash, and optional equals padding.
The encoder reads the input bytes in groups of three and emits four Base64 characters, which makes the output roughly one third larger than the original data.
Examples
Plain text
Input
Hello World
Output
SGVsbG8gV29ybGQ=
The trailing equals sign is padding added because the input length is not divisible by three.
JSON value
Input
{"user":"jane"}
Output
eyJ1c2VyIjoiamFuZSJ9
Useful when a text-only field needs to carry structured data.
Edge cases to know
- Base64 is encoding, not encryption. Anyone can decode it.
- Padding with = or == is normal, but some URL-safe formats omit it.
- Large files become larger after encoding, so avoid Base64 for payloads where raw binary upload is supported.
Privacy note
This free tool processes input in your browser for normal text conversions. Do not paste secrets unless you are comfortable handling them in the current browser session.