Convert text, files, and binary data to Base64 encoding instantly. Encode or decode with full UTF-8 support, URL-safe mode, and one-click copy — all processed locally in your browser.
Base64 is a binary-to-text encoding scheme that converts binary data into a string of 64 printable ASCII characters: uppercase letters (A-Z), lowercase letters (a-z), digits (0-9), plus (+), and forward slash (/). It works by taking every three bytes of input and splitting them into four 6-bit groups, each mapped to one of the 64 characters. When the input length is not a multiple of three, the output is padded with one or two equals signs (=).
Defined in RFC 4648, Base64 is widely used for safely transporting binary data through text-only channels such as email (MIME), JSON payloads, HTML data URIs, and URL query parameters. It is important to note that Base64 is not encryption — it provides no security or confidentiality. It is purely a data encoding format designed for reliable transport across systems that only support text.
Convert plain text to Base64 and back. Paste any string and get the encoded output instantly, or decode a Base64 string to reveal its original content.
See results as you type with live encoding and decoding. The output updates automatically with every keystroke for a frictionless workflow.
Toggle URL-safe mode to replace + with - and / with _, making the output safe for URLs, filenames, and JWT tokens without additional percent-encoding.
Upload images, documents, or any binary file and convert them to Base64 strings. Perfect for generating data URIs or embedding assets directly into HTML, CSS, or JSON.
Full support for multi-byte UTF-8 characters including emojis, accented letters, CJK scripts, and symbols. International text encodes and decodes correctly every time.
Copy encoded or decoded results to your clipboard with one click, or download as a file. Share results quickly or save them for later use in your projects.
Type or paste the text you want to convert into the input area, or upload a file to encode its contents as Base64.
Select whether to encode plain text into Base64 or decode an existing Base64 string. Switch between standard and URL-safe variants as needed.
Your converted output appears instantly. Copy it to your clipboard with a single click or download it as a file.
Uses + and / alongside the alphanumeric set, with = padding to make the output length a multiple of four.
Best for: Email attachments (MIME encoding), data URIs in HTML and CSS, and contexts where the full Base64 alphabet is accepted.
Replaces + with - and / with _, and often omits = padding. This avoids conflicts with URL-reserved characters.
Best for: URL query parameters, filenames, JWT tokens, and situations where the string must be URI-safe without percent-encoding.
Base64 exists specifically to carry binary data through channels that only handle text. Every file — an image, a PDF, an executable — is ultimately a stream of bytes (binary). Base64 reads those bytes in groups of three (24 bits) and rewrites them as four printable ASCII characters, so the binary survives email, JSON, and URLs without corruption.
Binary to Base64: upload any file above and choose encode — the tool converts the raw bytes into a Base64 string you can paste anywhere text is allowed. Base64 to binary: paste a Base64 string and choose decode to recover the exact original bytes, then download them back as a file. The round trip is lossless: decoding returns byte-for-byte what you started with.
Note that Base64 is not the same as a raw binary (0s and 1s) view of data — it's a compact text representation of those bytes. Because it runs entirely in your browser here, even large or sensitive files never leave your device.
Base64 encodes binary data into ASCII text for safe transmission through text-only channels. Common uses include email attachments, data URIs, API payloads, JWT tokens, and storing binary data in JSON or XML.
No. Base64 is an encoding scheme, not encryption. Anyone can decode a Base64 string without a key. It provides zero security. For protecting sensitive data, use a proper encryption algorithm such as AES.
Base64 encodes every 3 bytes into 4 ASCII characters, resulting in roughly a 33% size increase. This overhead is the trade-off for representing binary data using only printable characters.
A variant replacing + with - and / with _ so the output works directly in URLs and filenames without percent-encoding. Defined in RFC 4648, it is commonly used in JWT tokens and web APIs.
Yes. Base64 can encode any binary file — images, PDFs, audio, or archives. The output is a plain ASCII string that can be stored in text fields, embedded in HTML, or sent through text protocols.