Base64 Encoder & Decoder

Encode text or files to Base64, or decode Base64 back to plain text. Drag & drop files for quick encoding with data URI support — everything runs in your browser.

Encode & decode Base64

Type text in either box, or drop a file to encode it.

Drop a file here or click to browse
Data URI

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters. It is widely used to embed images in HTML/CSS (data URIs), transmit binary data in JSON or XML, encode email attachments (MIME), and store binary content in text-only systems. Each 3 bytes of input produce 4 Base64 characters, resulting in roughly 33% size increase.

File encoding & data URIs

Drag and drop any file onto the upload area to encode it as Base64. For images, enable the data URI option to generate a complete data:image/...;base64,... string you can paste directly into HTML <img> tags or CSS url() values — no server round-trip required.

Privacy

All encoding and decoding happens in your browser using JavaScript. Your text and files are never uploaded to a server, making this tool safe for sensitive data, API keys, tokens, and proprietary content.

More developer tools