Back to Utilities
CONVERTER

Base64 Encoder & Decoder

Convert text to Base64 or decode Base64 strings instantly in your browser.

Accepts: .txt, .json, .csv, .xml, .yaml, .yml, .sql
0chars
0lines
0words

User Guide

Overview

Base64 is an encoding scheme that converts binary data into ASCII text format. This tool lets you encode regular text to Base64 or decode Base64 strings back to readable text.

Base64 encoding is essential when you need to transmit data over channels that only support text or when embedding binary data in text formats like JSON or HTML.

When to Use This Tool

  • Encoding credentials for HTTP Basic Authentication
  • Embedding images or files in HTML, CSS or JSON
  • Encoding data for URL-safe transmission
  • Decoding Base64 strings from API responses
  • Testing and debugging Base64-encoded data

How to Use

To Encode:

  1. Select "Encode" mode
  2. Enter your text in the input field
  3. Click "Encode"
  4. Copy the Base64 output

To Decode:

  1. Select "Decode" mode
  2. Paste your Base64 string in the input field
  3. Click "Decode"
  4. View the decoded text

Example

Original Text

Hello World!

Base64 Encoded

SGVsbG8gV29ybGQh

Common Use Cases

HTTP Basic Authentication

Credentials are encoded as username:password in Base64 for the Authorization header.

Data URLs

Embed images directly in HTML or CSS using Base64-encoded data URIs.

Email Attachments

MIME email encoding uses Base64 to encode binary file attachments.

JSON/XML Data

Binary data embedded in JSON or XML is typically Base64-encoded.

Frequently Asked Questions

Related Utilities