Base64 Converter
Encode or decode text, images and files to and from Base64.
Examples and how it works
Base64 encodes bytes as printable characters. To recover text, decode Base64 to bytes and interpret those bytes as UTF-8.
Base64 → UTF-8
- Input
- SGVsbG8=
- Output
- Hello
Base64 is not encryption. Decoded data may be a binary file instead of text, and can fail UTF-8 decoding.
How to use
- 1
Input
Type text or select a file.
- 2
Convert
Encode or decode.
- 3
Copy
Copy or download the result.
Features
- Encode and decode text and files
- Convert images and PDFs to Base64
- Secure processing entirely in your browser
- Copy or download results
Use cases
Check authentication header format
Check the Base64 format of an authentication header with test values. Do not enter real secrets.
Embed images in HTML
Convert images to Base64 data URIs for embedding directly in HTML or CSS.
Convert data for APIs
Encode or decode Base64 payloads during API development.
Details
Base64 is an encoding scheme that converts binary data into text. It is used in email attachments, authentication headers, and data URIs for embedding images.
You can encode text, images, PDFs and other files to Base64. The result can be copied or downloaded for immediate use.
The decode function restores Base64-encoded data to its original text or file form. Useful for debugging and analyzing data URIs during development.
FAQ
What is Base64?
An encoding scheme that converts binary data into text. It lets you handle binary data in text-based mediums like email and JSON.
Can I embed images in HTML?
Yes. Encode the image to Base64 and use the data:image/png;base64, format in an img src attribute.
Can it handle large files?
It depends on your browser memory. Files up to a few MB are handled without issues.
Can I convert files to Base64?
Yes. You can convert files as well as plain text.
Related Tools
JSON Formatter
Format, minify, validate and unescape JSON right in your browser.
Text Converter
Convert case (lowercase, uppercase, title case) and clean up text: remove blank lines, trim spaces, and count characters, lines and UTF-8 bytes.
UUID Generator
Generate UUIDs (v4) in bulk for free. Handy for API development and test data.
Hex & Text Converter
Convert Hex bytes and UTF-8 text in your browser. Inspect byte counts, Japanese characters and invalid UTF-8 without uploading data.
All processing happens in your browser. Your files are never uploaded.
Verified: Regression tests protect the no-upload design for text and files
Did you know?
Base64 was invented to send binary data through email, which only handled text.