Home Developer Tools Base64 Encoder

Base64 Encoder & Decoder – Free Online Tool

Encode text or files to Base64, decode Base64 strings back to plain text — all client-side with support for URL-safe variants and data: URLs.

Plain Text Input
Base64 Output
Base64 Input
Decoded Text
Advertisement
Ad Space 728×90

What Is the Base64 Encoder / Decoder?

The Base64 Encoder & Decoder is a free, browser-based tool that converts text and binary files to Base64 — and back again — without uploading anything to a server. Use it to embed images directly in HTML or CSS as data URIs, encode binary payloads for JSON and XML APIs, or decode Base64 strings from configuration files and JWTs. URL-safe mode replaces + and / with - and _ for safe use in URLs and filenames.

Text & File Encoding

Encode plain text or binary files (images, PDFs) to Base64 in seconds.

Instant Decoding

Decode any Base64 string back to readable text or a downloadable binary file.

URL-Safe Mode

Switch to URL-safe Base64 for tokens, JWTs, and filenames that must travel through URLs.

Fully Private

All encoding & decoding runs in your browser. Your data never touches a server.

Advertisement
Ad Space 728×90

How to Use

01

Choose Encode or Decode

Select the Encode tab to convert text or a file to Base64, or the Decode tab to reverse a Base64 string back to its original form.

02

Enter Your Input

Paste your text or Base64 string into the input area, or drag and drop a file onto the File tab to encode binary data like images or PDFs.

03

Select Options

Toggle URL-safe mode to replace +/ with -_, or enable line-wrapping at 76 characters for MIME-compliant output.

04

Copy or Download

Click Copy to grab the output text, or Download to save a decoded binary file directly to your device.

Advertisement
Ad Space 300×250

Frequently Asked Questions

Advertisement
Ad Space 728×90