Encode or decode Base64
Convert text and files to Base64 and back, with full Unicode support.
Processed in your browser. Your files stay on this device. Nothing is uploaded to our servers.
How to use Base64 Encoder / Decoder
- 1
Choose a mode: text, Base64, file to Base64, or Base64 to file.
- 2
Paste your input or choose a file.
- 3
Copy the result or download it.
About Base64 Encoder / Decoder
Base64 represents binary data with 64 printable characters, which is useful for embedding images in HTML or CSS, sending attachments in JSON, or reading encoded values in configuration files. Text is encoded as UTF-8, so Arabic, accents and emoji round-trip correctly. The decoder accepts standard and URL-safe alphabets, missing padding, line breaks and data: URI prefixes, and tells you when input is malformed. If decoded data is not text, you can download it as a file whose type is detected from its content. Base64 is an encoding, not encryption: anyone can decode it. Everything runs in your browser.
Frequently asked questions
Is Base64 secure?
No. It is an encoding that anyone can reverse. Use the encryption tools to protect data.
Why is the result bigger than my file?
Base64 uses four characters for every three bytes, so the output is about 33% larger.
What is URL-safe Base64?
A variant that uses - and _ instead of + and / and omits padding, so it can be used in URLs and file names.
Related tools
JSON Formatter & Validator
Format, minify and validate JSON with clear error messages.
Processed in your browser
File Hash Checker
Calculate SHA-256, SHA-512 or SHA-1 checksums of a file.
Processed in your browser
HMAC Generator
Create and verify HMAC-SHA256 and HMAC-SHA512 signatures.
Processed in your browser