Base 64 Encoder
Quickly convert your text or binary data into a Base64 encoded string with our free online Base64 Encoder. This tool is essential for developers needing to safely transmit data over media that are designed to handle textual data, ensuring data integrity during transport. For your privacy, all processing happens right in your browser. Your data is never sent to us or logged. (looking for decoding?)
What is Base64?
The term Base64 originates from MIME content transfer encoding. It refers to a group of encoding schemes that represent binary data in an ASCII format by translating it into a radix-64 representation.
How Base64 Encoding Works
Base64 encoding is primarily used when binary data needs to be stored or transferred over systems designed to handle only text. This ensures that the data remains intact and unmodified during transit. Common applications include encoding email attachments via MIME and embedding complex data within XML or JSON files.
The specific set of 64 characters used can vary by implementation, but the goal is always to use a subset of characters common to most encodings. This makes the data resilient when passing through legacy information systems that may not be 8-bit clean. The standard implementation (RFC 4648) uses A-Z, a-z, and 0-9 for the first 62 values, with different symbols (typically + and /) used for the final two values.
Base64 Index Table (RFC 4648)
| Index | Binary | Char | Index | Binary | Char | Index | Binary | Char | Index | Binary | Char |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 000000 | A | 16 | 010000 | Q | 32 | 100000 | g | 48 | 110000 | , |
| 1 | 000001 | B | 17 | 010001 | R | 33 | 100001 | h | 49 | 110001 | - |
| 2 | 000010 | C | 18 | 010010 | S | 34 | 100010 | i | 50 | 110010 | . |
| 3 | 000011 | D | 19 | 010011 | T | 35 | 100011 | j | 51 | 110011 | / |
| 4 | 000100 | E | 20 | 010100 | U | 36 | 100100 | k | 52 | 110100 | 0 |
| 5 | 000101 | F | 21 | 010101 | V | 37 | 100101 | l | 53 | 110101 | 1 |
| 6 | 000110 | G | 22 | 010110 | W | 38 | 100110 | m | 54 | 110110 | 2 |
| 7 | 000111 | H | 23 | 010111 | X | 39 | 100111 | n | 55 | 110111 | 3 |
| 8 | 001000 | I | 24 | 011000 | Y | 40 | 101000 | o | 56 | 111000 | 4 |
| 9 | 001001 | J | 25 | 011001 | Z | 41 | 101001 | p | 57 | 111001 | 5 |
| 10 | 001010 | K | 26 | 011010 | a | 42 | 101010 | q | 58 | 111010 | 6 |
| 11 | 001011 | L | 27 | 011011 | b | 43 | 101011 | r | 59 | 111011 | 7 |
| 12 | 001100 | M | 28 | 011100 | c | 44 | 101100 | s | 60 | 111100 | 8 |
| 13 | 001101 | N | 29 | 011101 | d | 45 | 101101 | t | 61 | 111101 | 9 |
| 14 | 001110 | O | 30 | 011110 | e | 46 | 101110 | u | 62 | 111110 | + |
| 15 | 001111 | P | 31 | 011111 | f | 47 | 101111 | v | 63 | 111111 | / |
| Padding: = | |||||||||||