Text & File · Image Preview · URL-Safe · 100% Free

Base64 Encoder / Decoder

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

Plain Text to Encode
Base64 Output
Preview
Input: 0 chars
Output: 0 chars
Ratio:

Base64 encoding made effortless

Text, images and files — encode or decode anything in seconds.

🖼

Image Preview

Encode an image file and instantly see the Base64 data URI render as a preview.

🔗

URL-Safe Mode

Generate URL-safe Base64 with + and / replaced by - and _ for use in URLs.

📁

File Encoding

Drag and drop any file — text, image, PDF — to encode it as Base64.

🔒

100% Private

All encoding and decoding happens locally. Your files never leave your device.

How It Works

Three Simple Steps

1

Enter or paste your text

Type or paste the text to encode, or a Base64 string to decode.

2

Choose encode or decode

Select whether you want to encode to Base64 or decode from Base64.

3

Copy the result

Click the copy button to grab your encoded or decoded output instantly.

Frequently Asked Questions

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data in ASCII format, commonly used in web and email.
Is this tool free?
Yes, 100% free with no signup, no limits, and no watermarks.
Is my data sent to a server?
No. All encoding and decoding happens entirely in your browser using JavaScript.
What characters does Base64 use?
A-Z, a-z, 0-9, plus + and / with = as padding.
Can I encode images or files?
This tool encodes text. For image-to-Base64 conversion, use our Image to Base64 tool.

Base64 Encoder Decoder — Complete Guide

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.

💡 URL-safe mode

Enable URL-safe mode when using Base64 in URLs — it replaces + and / with - and _.

💡 Check padding

Base64 strings must have a length divisible by 4. Check for missing = padding if decoding fails.

💡 JSON payloads

Base64 is commonly used to embed binary data inside JSON API payloads.

💡 Email attachments

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.

Trustpilot