Base64 Encode/Decode

Free

Encode text or files to Base64 and decode Base64 strings back to their original form. Supports text encoding/decoding, file-to-Base64 conversion (including images), and data URI generation. Handles UTF-8 text, binary files, and provides both standard and URL-safe Base64 variants.

How It Works

1

Upload or enter your data

Drag and drop your file or paste your content into the tool input area.

2

Configure options

Adjust settings and preferences to get exactly the output you need.

3

Get your result

Download your processed file or copy the output. Everything happens in your browser.

Frequently Asked Questions

Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters. It is commonly used to embed images in HTML/CSS, transmit binary data in JSON, and encode email attachments.

Yes, upload any file to get its Base64 representation. For images, we also generate a ready-to-use data URI that you can embed directly in HTML or CSS.

URL-safe Base64 replaces '+' with '-' and '/' with '_' to avoid issues when Base64 strings are used in URLs or filenames. Our tool supports both standard and URL-safe variants.

Related Tools in Developer Tools