Fastils

Contact

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)

IndexBinaryCharIndexBinaryCharIndexBinaryCharIndexBinaryChar
0000000A16010000Q32100000g48110000,
1000001B17010001R33100001h49110001-
2000010C18010010S34100010i50110010.
3000011D19010011T35100011j51110011/
4000100E20010100U36100100k521101000
5000101F21010101V37100101l531101011
6000110G22010110W38100110m541101102
7000111H23010111X39100111n551101113
8001000I24011000Y40101000o561110004
9001001J25011001Z41101001p571110015
10001010K26011010a42101010q581110106
11001011L27011011b43101011r591110117
12001100M28011100c44101100s601111008
13001101N29011101d45101101t611111019
14001110O30011110e46101110u62111110+
15001111P31011111f47101111v63111111/
Padding: =

Other Tools