Back to tools

Base64 Encoder / Decoder

Encode text or files to Base64, or decode Base64 strings back to their original form. Supports UTF-8 and file uploads.

0 chars
0 chars

All encoding and decoding happens right in your browser. Your data never leaves your device. Supports UTF-8 text and file-to-data-URI conversion.

About This Tool

Base64 Encoder and Decoder converts text, files, and binary data to and from Base64 encoding. Base64 is used in data URIs, email attachments, JSON payloads, and anywhere binary data needs to pass through a text channel.

File encoding converts any file (image, PDF, font) into a Base64 string that can be embedded directly in HTML or CSS as a data: URI. This eliminates HTTP requests for small assets.

All encoding and decoding runs in your browser using the built-in btoa() and atob() APIs plus FileReader for binary files. No data is sent anywhere.