⚡
usefultools.dev
F64

Base64 File Encoder & Decoder

NOUVEAU

Base64 file encoder: turn any file into Base64 or a data URL, or decode Base64 back into a downloadable file with its type detected. Free, nothing uploaded.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

Drag and drop any file here (max 10.00 MB)

Only need to encode text? Use the Base64 Encoder / Decoder. Embedding images in CSS or HTML? Try Image to Base64.

⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

Encode
hello.txt (Hello)
SGVsbG8=
Size
1,000-byte file
1,336 chars (+33.6%)
Detect
iVBORw0KGgo…
PNG image (image/png)
Detect
JVBERi0xLjQK
PDF document
Decode
data:text/plain;base64,SGVsbG8=
Hello (5 B)
📖

Présentation

Base64 writes binary data using only 64 printable characters, which lets you put a file inside JSON, XML, an email, a CSS rule or an environment variable. This Base64 file encoder reads any file you drop on it and gives you raw Base64 or a ready-made data URL with the right MIME type, detected from the file content rather than its extension.

It also works the other way: paste Base64 or a data URL, see what kind of file it is (PNG, JPEG, PDF, ZIP, fonts, audio and more are recognised from their magic bytes), preview images and text, choose a file name and download the original file. Sizes are shown side by side so you can see the roughly 33% Base64 overhead before you embed anything.

Files are read and converted locally in your browser and are never uploaded. The limit is 10 MB per file.

Pourquoi utiliser cet outil ?

  • Encode any file type, not just images
  • Get raw Base64 or a complete data URL
  • Rebuild a file from Base64 and download it
  • File type detected from magic bytes
  • Files never leave your device
⭐

Fonctionnalités

📂

Drag and drop

Drop a file or pick one from your device; up to 10 MB.

🔗

Data URL output

Builds data:<mime>;base64,… using the type detected from the file content.

💾

Base64 to file

Decodes standard or URL-safe Base64 and data URLs into a downloadable file with your file name.

🔍

Magic-byte detection

Recognises images, PDF, archives, audio, video, fonts, WebAssembly, SVG, JSON and plain text.

📏

Size and overhead

Shows the original size, the Base64 length and the percentage it adds.

🖼️

Previews

Images and text files are previewed right after encoding or decoding.

🛠️

Mode d'emploi

1

Pick a direction

File → Base64 to encode, Base64 → File to decode.

2

Add your input

Drop or choose a file, or paste Base64 / a data URL.

3

Check type and size

Review the detected type, sizes and preview.

4

Copy or download

Copy the Base64, download it as .txt, or download the decoded file.

🤔

Questions fréquentes