Encodeur / Decodeur Base64
Encodez rapidement du texte en Base64 ou decodez du Base64 en texte.
Base64 est un schema d'encodage pour convertir des donnees binaires en chaines ASCII. Utilisations courantes :
- Transmettre des donnees binaires dans des URL ou des emails
- Integrer des donnees d'image dans du JSON ou du XML
- Encoder des identifiants (bien que ce ne soit pas du chiffrement)
- Encodage de l'authentification HTTP Basic
Attention : Base64 est une methode d'encodage, pas de chiffrement. Ne l'utilisez pas pour proteger des donnees sensibles.
Prochaines etapes suggerees
Outils Associés
Encodeur / Decodeur URL
Encoder et decoder des URL
Encodeur / Décodeur d'Entités HTML
Encodez les caractères spéciaux en entités HTML ou décodez-les
Échappement / Déséchappement de Chaîne
Échapper et désechapper des chaînes pour HTML, JSON, JavaScript, SQL et plus
Convertisseur de Base Numérique
Convertir des nombres entre binaire, octal, décimal et hexadécimal
Convertisseur d'Horodatage
Convertir entre horodatages Unix et dates lisibles
Recherche ASCII / Unicode
Rechercher et consulter les codes de caractères ASCII et Unicode
Comment utiliser
Collez ou saisissez du texte
Entrez votre texte, code ou données dans la zone de saisie.
Choisissez les options
Sélectionnez la transformation ou le format que vous souhaitez appliquer.
Copiez le résultat
Copiez la sortie dans votre presse-papiers en un clic.
Pourquoi utiliser cet outil
100 % Gratuit
Aucun coût caché, aucun niveau premium — chaque fonctionnalité est gratuite.
Aucune installation
Fonctionne entièrement dans votre navigateur. Aucun logiciel à télécharger ou installer.
Privé et sécurisé
Vos données ne quittent jamais votre appareil. Rien n'est envoyé sur un serveur.
Fonctionne sur mobile
Entièrement adaptatif — utilisez-le sur votre téléphone, tablette ou ordinateur.
Base64 Encoding and Decoding Explained
Key Takeaways
- Base64 converts binary data into ASCII text, making it safe to transmit through text-only channels like email and JSON.
- Base64 is an encoding scheme, not encryption — it provides no security and can be decoded by anyone.
- All encoding and decoding happens in your browser — your data stays on your device.
Base64 encoding is one of the most fundamental data transformation techniques in web development. It represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /), enabling safe transmission of files, images, and binary content through text-based protocols. Understanding Base64 is essential for working with APIs, email systems, and data URIs.
Base64 encoding increases data size by approximately 33% compared to the original binary.
Size Overhead
Key Concepts
How Base64 Works
Base64 takes every 3 bytes (24 bits) of input and splits them into four 6-bit groups, mapping each to one of 64 printable ASCII characters. Padding with '=' is added when input length is not a multiple of 3.
Data URI Embedding
Base64-encoded images can be embedded directly in HTML and CSS using data URIs (data:image/png;base64,...), eliminating extra HTTP requests for small assets.
Email Attachments (MIME)
Email protocols like SMTP are text-based. Base64 encoding via MIME allows binary attachments like images and documents to travel safely through email systems.
Base64url Variant
The URL-safe variant replaces '+' with '-' and '/' with '_' to avoid conflicts in URLs and filenames. This variant is used extensively in JWTs and OAuth tokens.
Pro Tips
Never use Base64 for security — it is trivially reversible. Use proper encryption (AES, RSA) for sensitive data.
Avoid Base64-encoding large images inline; the 33% size increase negates the benefit of saving an HTTP request.
Use Base64url (RFC 4648 §5) instead of standard Base64 when the output will appear in URLs or filenames.
Most modern browsers support btoa() and atob() natively, but they only handle Latin-1 characters — use TextEncoder for Unicode.
All Base64 encoding and decoding is performed entirely in your browser. Your data is never transmitted to any external server, making this tool safe for sensitive content.