Base64 Encoder & Decoder

Encode text or files to Base64, decode Base64 to text. Fast, secure, and works entirely in your browser.

Plain Text

Base64 Encoded

0 B
Input Size
0 B
Output Size
0%
Size Increase
0
Characters

Why Use Base64?

Essential for modern web development

Data URLs

Embed images, fonts, and files directly in HTML and CSS using data URLs.

API Authentication

Basic authentication and JWT tokens use Base64 encoding for credentials.

Binary Data Transfer

Safely transmit binary data through text-only protocols like JSON and XML.

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that converts binary data into ASCII text format. It's widely used in web development for embedding images, transmitting data over text-based protocols, and encoding authentication credentials.

How Base64 Works

Base64 encoding uses 64 different ASCII characters (A-Z, a-z, 0-9, +, /) to represent binary data. Every 3 bytes of binary data are encoded into 4 Base64 characters, resulting in approximately 33% size increase.

Common Uses

  • Data URLs: Embed images and files directly in HTML/CSS
  • Email Attachments: MIME email encoding uses Base64
  • API Authentication: Basic Auth headers are Base64 encoded
  • JWT Tokens: JSON Web Tokens use Base64 URL-safe encoding
  • Binary Data in JSON: Transfer files through REST APIs
  • Obfuscation: Simple encoding (not encryption!) of text

URL-Safe Base64

Standard Base64 uses + and / characters which can cause issues in URLs. URL-safe Base64 replaces these with - and _ making it safe for use in query parameters and file names.

Features

  • Encode text to Base64 instantly
  • Decode Base64 to readable text
  • Upload and encode files
  • Download encoded/decoded results
  • URL-safe encoding option
  • Real-time size calculations
  • 100% client-side processing
  • No file size limits

Need to work with API responses? Try ScrapingBot - our powerful web scraping API with built-in proxy rotation and JavaScript rendering.