Décodeur & Encodeur Base64
Encodez du texte en Base64 et décodez les chaînes Base64 en texte clair.
Détail du calcul
À propos de : Décodeur & Encodeur Base64
Base64 is a widely used binary-to-text encoding scheme that represents binary data in an ASCII string format. Defined in RFC 4648, Base64 takes groups of 24 bits (3 eight-bit bytes) and partitions them into four 6-bit chunks ($2^6 = 64$ possible values), mapping each chunk to a character in a 64-symbol index table.
The Base64 alphabet consists of uppercase letters A–Z (0–25), lowercase letters a–z (26–51), numerals 0–9 (52–61), and two punctuation symbols: plus (+) and slash (/). The equals sign (=) is appended as padding when the input data is not an exact multiple of 3 bytes.
Our Base64 decoder and encoder runs natively in your browser, enabling instant, secure conversion of strings, API tokens, and authorization headers without sending data to any external server.
Comment utiliser cet outil
- Saisissez ou collez vos données dans le champ d’entrée.
- Ajustez les options de conversion selon vos besoins.
- Le résultat converti est calculé instantanément en temps réel.
- Cliquez sur Copier pour récupérer votre texte converti.
How Base64 Encoding & Decoding Works
Encoding: Every 3 input bytes (24 bits) are divided into 4 six-bit integers. Each 6-bit integer (0–63) is replaced with its corresponding character in the Base64 alphabet. If only 1 byte is left at the end, two "=" padding characters are added; if 2 bytes are left, one "=" is added.
Decoding: Each Base64 character is looked up in the reverse index table to recover its 6 bits. The bits are reassembled into 8-bit octets and decoded into standard UTF-8 text.
Base64 Examples
Encoding Text to Base64
Encoding standard greeting phrase.
Decoding Base64 to Text
Deciphering a Base64 string back into readable English.
Base64 Index Table (64 Characters)
| Index | Character | Index | Character |
|---|---|---|---|
| 0–25 | A–Z | 26–51 | a–z |
| 52–61 | 0–9 | 62 | + (Plus) |
| 63 | / (Slash) | Pad | = (Equals) |
Encoding vs Encryption Warning
- Base64 is an encoding format for safe data transport across networks, NOT cryptographic encryption. Anyone with a Base64 decoder can decode the original content in milliseconds.
- Base64 encoded data is approximately 33% larger in file size than the raw binary data.
Foire Aux Questions
What is Base64?
How to decode Base64?
How does Base64 work?
Can Base64 be decoded?
Is Base64 safe to use?
How to convert into Base64?
Is Base64 the same as ASCII?
Outils associés
Encode text to RFC 4648 Base32 with 5-bit grouping and decode Base32 back to text.
Convert text and numbers to Base 16 hex and decode hexadecimal strings to text.
Encode and decode MIME Quoted-Printable text (RFC 2045) for safe 7-bit email transport.