Developer · Binary-safe text

Base64 Encoder / Decoder

Encode and decode, text or file

Standard and URL-safe alphabets, padding control, and a decoder that tells you when the input is malformed.

URL-safeUTF-8 safePadding controlValidation
Alphabets
2
Charset
UTF-8
Uploaded
0 B

Base64 Encoder / Decoder

Runs in your browser · nothing uploaded
Plain text
Base64
Bytes in
0
Bytes out
0
Padding
0
Alphabet
Standard

01 — How to use Base64 Encoder / Decoder

1 Pick a direction Encode turns readable text into Base64; Decode turns Base64 back into text. The toolbar switches between them and the output updates as you type.
2 Choose an alphabet Standard Base64 uses + and /, which both have meaning inside a URL. URL-safe swaps them for - and _ so the result can be dropped into a query string or filename untouched.
3 Set padding and wrapping Padding adds the trailing = characters that bring the output to a multiple of four. Wrapping breaks long output into fixed-width lines, which is what email headers and PEM files expect.
4 Copy the result Copy output puts the whole result on your clipboard. Everything happens in this tab — nothing is uploaded at any point.

02 — Getting good results

Base64 is not encryption Anyone can decode it instantly, including this page. It exists to move binary data safely through text-only channels, not to hide anything. Never use it to protect a password or a token.
Expect output to grow by a third Base64 represents three bytes with four characters, so encoded data is about 33% larger than its source, before any line breaks. Budget for that when embedding it somewhere with a size limit.
Padding can usually be dropped for URLs The = character often needs escaping in a URL, so URL-safe output omits padding by default. Decoders that follow the spec reconstruct it from the length, and this one does.

03 — Questions

No. Encoding and decoding both run in this browser tab using its own text and byte APIs. There is no server step, and closing the tab discards everything.

04 — More about Base64 Encoder / Decoder

61 more tools
where this came from.

Same shell, same shortcuts, same promise: nothing leaves your browser.

Browse all 62