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.

Was this tool helpful?

โญ Leave a review on Trustpilot

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

๐Ÿ“ค Share this tool