Base64 Tool

Encode text to base64 or decode base64 back to text.

Or encode a file directly to Base64:

Your files never leave your device
How it works

Three steps to done

1Drop your file

Drag and drop or click to browse

2Processed locally

Runs in your browser, nothing uploaded

3Download result

Get your file instantly

Use cases

When to use this

Decode auth tokens

Decode base64-encoded JWT payloads for debugging.

Encode API keys

Encode strings for APIs that expect base64 input.

Convert data

Quick encode/decode for development and testing.

Free Base64 encoder and decoder

Type or paste text on the left to encode it, or paste a Base64 string on the right to decode it. You can also upload a file to get its Base64 representation.

Everything runs in your browser using the native btoa and atob APIs for text and the FileReader API for files. Nothing is uploaded or stored.

Base64 is widely used in web development for data URIs, API payloads, email encoding, and storing binary data in text-based formats like JSON and XML.

Frequently Asked Questions

More tools

Related tools

All tools

3 free uses left today

Unlimited with Pro

Go Pro — $4.99/mo