Encoding

File & Base64 Converter

Convert any local file (fonts, audio, PDF, SVG, binaries) to Base64, Data URI, or CSS @font-face, and decode Base64 back to downloadable files with automatic Magic Bytes MIME detection.

About this tool

Encode arbitrary local files up to 10 MB into Base64, Data URIs, or ready-to-paste CSS/HTML snippets right in your browser.

When decoding Base64 back into a file, the tool inspects Magic Bytes signatures to detect the true MIME type and file extension automatically.

Best use cases

  • Embed small WOFF2 fonts, audio clips, or SVGs directly into CSS or single-file HTML apps.
  • Restore raw Base64 blobs from API logs back into downloadable PDFs, ZIPs, or images.

How to use it

  1. Drop a file in File → Base64 and pick your preferred output template.
  2. Or paste Base64 / Data URI in Base64 → File, click Detect & Decode File, and download.

Scope and limits

  • File size is capped at 10 MB to keep browser rendering responsive.

Data processing

Files and Base64 payloads stay completely inside your browser memory and are never uploaded.

Related tools

More in this category