Base64 encode and decode

Convert text or file bytes without uploading them.

Choose an operation and provide text or a file.

Preparing your result.

Source size

Tell us what happened and what you expected. Please leave out personal information and private tool inputs.

These details describe your setup. They don’t include your name, email, or anything entered into the tool.

See the details included

Voting-limit status from this browser is included. Reports are stored by Netlify so I can investigate.

Text becomes bytes before Base64

Text encoding first converts characters to UTF-8 bytes, then converts those bytes to Base64. For example, Hello becomes SGVsbG8=. Decoding reverses the process, showing text only when the bytes form valid UTF-8.

A file uses its original bytes directly. This can encode binary data without pretending it is text. Your selected file and text are processed in this browser and are not uploaded by the tool.

Check the alphabet and padding

Standard Base64 uses letters, digits, +, /, and trailing = padding when needed, unless the receiving protocol permits its omission. The decoder accepts whitespace, unpadded values, URL-safe characters, and a Base64 data-URL prefix. It rejects misplaced padding and nonzero unused bits instead of silently accepting a malformed value. RFC 4648 defines these encodings.

Encoding does not hide a password, token, or other secret from someone who can read the output. Treat encoded sensitive data with the same care as its source.

No record of your text is kept.

FAQs

Why is the encoded output larger?

Base64 represents each group of three bytes using four characters, plus padding for a partial group in standard output. Expect roughly one-third more characters than the original byte count.

What is URL-safe Base64?

It replaces + with - and / with _. This tool omits padding for URL-safe output and accepts either alphabet when decoding. The receiving system still determines the format it expects.

Why can I download a result but not copy text?

The decoded bytes may not form valid UTF-8 text. That is normal for images and other binary files. The tool preserves those bytes in a download instead of replacing undecodable characters.

What are the size limits?

Encoding accepts at most 2 MiB of source bytes. Decoding limits the resulting byte data to 2 MiB. Text is measured after UTF-8 encoding, so a character may use more than one byte.

Have an idea for a tool I should add? Send it in. I read every suggestion and choose which ones to build next.

For example: "Count the weekdays until a date, without holidays."

Please don't include your name, email, or anything personal. I don't need it. Voting-limit status from this browser is included.