Base64 Encoder/Decoder

Free online Base64 Encoder/Decoder.

Calculator

How to Use

  1. Select encode or decode mode
  2. Enter the text or Base64 string to process
  3. Choose standard or URL-safe Base64 variant
  4. View the encoded or decoded result instantly

Formula

Base64 uses 64 characters: A-Z, a-z, 0-9, +, / (and = padding)\nEvery 3 bytes of input = 4 Base64 characters\nOutput size = ceil(input_bytes / 3) x 4\nPadding: = (1 extra byte) or == (2 extra bytes)\nURL-safe variant: uses - and _ instead of + and /

Example Calculations

Encode text

Input: Hello, World!

Result: SGVsbG8sIFdvcmxkIQ==

Decode Base64

Input: UHl0aG9uIDM=

Result: Python 3

About This Calculator

Encode and decode Base64 strings for data transmission and storage. Free Base64 converter tool for developers working with binary data in text formats.

Our base64 encoder/decoder is free, easy to use, and provides instant results. All calculations are performed in your browser for privacy and speed.

Related Calculators

Frequently Asked Questions

What is Base64 encoding used for?

Converting binary data to text for transmission in email, URLs, JSON, or XML. Common uses: embedding images in CSS/HTML (data URIs), encoding credentials in HTTP headers, storing binary in databases.

Why does Base64 make data larger?

Base64 increases size by about 33%. Every 3 bytes becomes 4 characters. A 300-byte file becomes 400 characters. This overhead is the trade-off for text-safe transmission.

How do I decode a Base64 string?

Map each character to its 6-bit value, combine bits into 8-bit bytes. Or use an online decoder. Example: SGVsbG8= decodes to 'Hello'. The = is padding.

Is Base64 encryption?

No. Base64 is encoding, not encryption. It provides no security - anyone can decode it. It only converts binary to text format. For security, use actual encryption (AES, RSA) before Base64 encoding.