Encode text or files to Base64, or decode Base64 strings back to plain text.
A Base64 encoder/decoder is a free developer tool that converts text, binary data or files to Base64 encoded format and back. Base64 is widely used for encoding binary data as ASCII text in emails, data URLs, API authentication headers and web tokens (JWT).
Encode images as Base64 data URIs to embed them directly in HTML or CSS without a separate HTTP request.
Basic HTTP authentication uses Base64 encoding: 'Authorization: Basic ' + base64('username:password').
MIME encoding uses Base64 to send binary attachments (images, PDFs) through email systems that only support text.
JSON Web Tokens (JWT) use Base64URL encoding for their header and payload sections.
Base64 is an encoding scheme that converts binary data into a sequence of printable ASCII characters using 64 characters: A–Z, a–z, 0–9, + and /. It is not encryption.
No. Base64 is encoding, not encryption. It can be decoded by anyone without a key. Do not use it to secure sensitive data.
Base64 encodes 3 bytes at a time into 4 characters. If the input is not a multiple of 3 bytes, padding characters (=) are added at the end to make it so.
Base64URL is a variant that replaces + with - and / with _ to make the output safe for use in URLs and filenames without percent-encoding.