Encode text or files to Base64 — or decode Base64 strings back to text. Supports file upload with image preview.
Click to choose a file or drag & drop here
Supports images, PDF, text, and more
Text, images and files — encode or decode anything in seconds.
Encode an image file and instantly see the Base64 data URI render as a preview.
Generate URL-safe Base64 with + and / replaced by - and _ for use in URLs.
Drag and drop any file — text, image, PDF — to encode it as Base64.
All encoding and decoding happens locally. Your files never leave your device.
Type or paste the text to encode, or a Base64 string to decode.
Select whether you want to encode to Base64 or decode from Base64.
Click the copy button to grab your encoded or decoded output instantly.
This free online base64 encoder decoder tool is designed to work entirely in your browser — no uploads, no waiting, no software installation needed. It's fast, private, and completely free to use without any account or subscription.
Enable URL-safe mode when using Base64 in URLs — it replaces + and / with - and _.
Base64 strings must have a length divisible by 4. Check for missing = padding if decoding fails.
Base64 is commonly used to embed binary data inside JSON API payloads.
The MIME standard uses Base64 to encode email attachments.
Base64 encoding is a fundamental tool for developers working with APIs, emails, data URIs, and authentication tokens.