PDFFlare

Base64 Encode & Decode Online — Free

Encode and decode Base64 strings online for free. Instant conversion with copy-to-clipboard support.

Encode plain text to Base64 or decode Base64 strings back to readable text — instantly, right in your browser. Base64 encoding is a staple of modern web development, used to embed images in HTML and CSS via data URIs, encode credentials for API authentication headers, and safely transmit binary data inside JSON payloads.

This tool runs entirely client-side, so your data never leaves your device. Paste your input, click Encode or Decode, and copy the result. Need to percent-encode a URL string instead? Try the URL Encode & Decode tool.

How to Base64 Encode & Decode

  1. Enter your text or Base64 string

    Type or paste the text you want to encode, or a Base64 string you want to decode, into the input area.

  2. Click Encode or Decode

    Click 'Encode' to convert plain text to Base64, or 'Decode' to convert a Base64 string back to readable text.

  3. Copy the result

    Click 'Copy Output' to copy the converted result to your clipboard for use in your code or project.

Common Use Cases

  • Inline Images in CSS/HTML

    Encode small images as Base64 data URIs to embed them directly in stylesheets or HTML, eliminating extra HTTP requests.

  • Decode API Response Payloads

    Many APIs return Base64-encoded data in their responses. Decode those payloads to inspect the original content quickly.

  • HTTP Basic Auth Headers

    Encode username:password strings for HTTP Basic Authentication headers used in REST API calls and server configurations.

  • Embed Binary Data in JSON

    JSON doesn't support raw binary. Base64-encode binary content so it can be safely embedded in JSON fields for APIs and configs.

Why Use PDFFlare Base64 Encoder?

Instant Conversion

Encode or decode Base64 strings in milliseconds. No loading screens — results appear immediately.

Unicode Support

Full UTF-8 support means special characters, emojis, and non-Latin scripts encode and decode correctly.

One-Click Copy

Copy the encoded or decoded result to your clipboard with a single click. Ready to paste into your code.

100% Client-Side

All processing happens in your browser. Your data never leaves your device — safe for sensitive content.

Frequently Asked Questions About Base64 Encoding