Base64 Encoder & Decoder
Convert text, UTF-8 strings, and local binary files into Base64 format, or decode Base64 back to original files.
File to Base64 Data URI
Supports Images (PNG, JPG, SVG, WebP), Audio (MP3, WAV), PDF, and documents up to 25 MB
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation. It is widely used for sending email attachments via MIME, embedding image assets directly inside HTML/CSS files without separate HTTP requests, and storing complex data inside cookies.
What is the Base64 Encoder & Decoder?
Encode and decode text, UTF-8 unicode strings, and binary files (images, audio, PDF) to Base64. Reconstruct files from Base64 with URL-safe option.
What can you use it for?
Use it to inspect encoded API values, prepare a data URI, move a small binary file through a text field, or recover original text from Base64.
How does it work?
Choose text or a file, select encode or decode, and run the conversion. Base64 maps bytes to printable characters; decoding reverses that mapping when the input is valid.
What problem does it solve?
Binary data and certain characters are awkward to carry in text-only channels. Base64 gives them a portable text representation, while the decoder restores the underlying data.
Frequently asked questions
What does Base64 Encoder & Decoder do?
Encode and decode text, UTF-8 unicode strings, and binary files (images, audio, PDF) to Base64. Reconstruct files from Base64 with URL-safe option.
How do I use Base64 Encoder & Decoder?
Choose text or file mode. For text, enter the content or Base64 string and select encode or decode; optional settings control URL-safe characters and line wrapping.