Encodeur/décodeur Base64
Encoder et décoder les chaînes Base64
Qu'est-ce que Base64 ?
Base64 est un système de codage binaire-texte qui représente des données binaires sous forme de chaînes ASCII. Il est couramment utilisé pour coder les données à transmettre sur des supports qui ne prennent en charge que le contenu textuel.
Cas d'utilisation
- Pièces jointes aux courriels - URL de données en HTML/CSS - Codage des jetons d'API - Stockage de données binaires en JSON/XML
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that represents binary data in ASCII string format. It uses 64 characters (A-Z, a-z, 0-9, +, /) to represent binary data, making it safe for transmission over text-based protocols.
Email Attachments
MIME encoding for email attachments
Data URIs
Embed images directly in HTML/CSS
API Communication
Encode binary data in JSON/XML
Authentication
HTTP Basic Authentication headers
How to Use the Base64 Converter
Text Encoding/Decoding:
- Enter your text in the input field
- Click "Encode" to convert text to Base64
- Click "Decode" to convert Base64 back to text
- Use "Swap" to exchange input and output
Image Conversion:
- Click "Upload Image" to select an image file
- The Base64 data URI will be generated automatically
- Paste a Base64 string and click "Preview" to view as image
- Copy the Base64 string for use in your code
Frequently Asked Questions
Why use Base64 encoding?
Base64 is essential when you need to transfer binary data through text-based protocols that don't support binary. It's commonly used in emails, data URIs, and API payloads.
Is Base64 encryption?
No, Base64 is encoding, not encryption. It doesn't provide any security - anyone can decode Base64 data. Use proper encryption if security is needed.
Why is Base64 output larger than input?
Base64 encoding increases data size by approximately 33% because it uses 4 characters to represent every 3 bytes of input data.
Is my data secure?
Yes! All encoding and decoding happens locally in your browser. Your data is never sent to any server.