Base64 Encoder/Decoder

Encode and decode Base64 strings

Share this tool

Report a problem

Describe the problem without including private input or files.

How useful was this tool?

How useful was this tool?

0 characters

Upload text or binary files up to 5 MB. Text is encoded as UTF-8.

0 characters

Processed on this device. Your text is not uploaded.

Usage tips
  • Base64 represents binary data as text. It does not encrypt your data.
  • Use file upload to encode images and other binary files, or load a text file.
  • Copy the result or download it as encoded.txt or decoded.txt.
  • All encoding and decoding happens locally on your device.

About Base64 Encoder & Decoder

Our Base64 encoder and decoder is a free online tool that converts text to Base64 encoding and decodes Base64 strings back to plain text instantly. Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 ASCII characters, making it safe to transmit over text-based protocols like HTTP, SMTP, and JSON.

The Base64 encoding process works by taking groups of three bytes (24 bits) and splitting them into four 6-bit values, each mapped to a printable ASCII character from A-Z, a-z, 0-9, +, and /. This makes it an essential tool for web developers who need to embed images in CSS, encode API authentication tokens, or safely transmit binary data through text-only channels.

This tool supports full Unicode text encoding, automatically handles data URI prefixes during decoding, and strips whitespace for cleaner results. Use it to build an HTTP Basic Authorization header, inline a small icon as a data URI, or read an encoded token copied from a log, with results as you type.