Decodificatore ed Encodificatore Base64
Codifica testo in Base64 e decodifica stringhe Base64 in testo chiaro.
Dettaglio del Calcolo
Informazioni su Decodificatore ed Encodificatore 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.
Come usare questo strumento
- Inserisci il testo o valore nel campo di input.
- Imposta le opzioni di conversione desiderate.
- Il risultato convertito viene calcolato istantaneamente in tempo reale.
- Fai clic su Copia per salvare il risultato.
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.
Domande Frequenti
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?
Strumenti Correlati
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.