Base64 Data Encoder
World's simplest base64 tool
This online program converts data to base64 encoding. It works with any textual, numeric, or Unicode data and encodes it to a single-line or multi-line base64 data. It can also encode several independent strings at once and return multiple base64 results (one per line). Created by encoding gurus from team Browserling.
Check out our primary project!
Browserling
We created Browserling – get a cloud browser in 5 seconds. Check it out!
A link to this tool, including input, options and all chained tools.
Can't convert.
What is a Base64 Data Encoder?
learn more about this tool
This application works in your browser and it base64-encodes the given input values. Base-64 encoding works as follows – it converts the input data to binary data, then splits the binary sequence into groups of 6 bits, and assigns one of the characters from the base-64 alphabet to each 6-bit group. With this encoding algorithm, every 3 input bytes (24 bits) are converted into 4 groups of 6 bits that are encoded with 4 symbols. In base-64 encoding, the length of the output data (compared to input data) increases by a third. The base64 index table consists of uppercase and lowercase Latin letters (A-Z and a-z), numbers (0-9), and characters + and /. The = symbol is used as a padding character to fill the missing characters in the trailing groups when only one or two bytes are encoded. All base64 symbols are ASCII characters that can be easily transmitted over non-binary channels and stored in simple text files. There are no spaces in the base64 encoding, so all characters are displayed as a continuous string on a single line. Sometimes, it's convenient to split the encoded output data into constant-length chunks and print it on multiple lines. You can do that by enabling the "Chunked Base64" option. The chunked multi-line output data is also valid base64. If you need to encode several separate values at the same time, use the "Encode Lines Separately" option. It independently encodes each text line and outputs multiple base64 values. Base64abulous!
Base64 Data Encoder examples
Click to useSingle-line Base-64
This example converts a simple one-line string to base-64. It encodes 28 input ASCII characters to 40 output base-64 alphabet characters and prints them on the opposite line. The last two characters "==" mean that the output was padded with at least 12 bits to make the output base-64 data length evenly divisible by 4 (because every 4 base-64 characters form 3 input data bytes).
Go after dreams. Not people.
R28gYWZ0ZXIgZHJlYW1zLiBOb3QgcGVvcGxlLg==
Required options
Print encoded data on one line.
Select this option if you want
to encode each line separately.
Chunked Base64
In this example, we base64-encoded a quote by Eleanor Roosevelt and printed the output data in a chunked format. We set the number of characters per line to 20 and the single input line got encoded as multiline data (which is still of course valid base64).
The purpose of life is to live it, to taste experience to the utmost, to reach out eagerly and without fear for newer and richer experience. Eleanor Roosevelt
VGhlIHB1cnBvc2Ugb2Yg
bGlmZSBpcyB0byBsaXZl
IGl0LCB0byB0YXN0ZSBl
eHBlcmllbmNlIHRvIHRo
ZSB1dG1vc3QsIHRvIHJl
YWNoIG91dCBlYWdlcmx5
IGFuZCB3aXRob3V0IGZl
YXIgZm9yIG5ld2VyIGFu
ZCByaWNoZXIgZXhwZXJp
ZW5jZS4gRWxlYW5vciBS
b29zZXZlbHQ=
Required options
Print encoded data on multiple lines.
Set the number of symbols per line.
Select this option if you want
to encode each line separately.
Parallel Base64 Encoding
In this example, we enter a list of common chemical formulas as the input data. We want to simultaneously find base64 representations of each formula so we activate the "Encode Lines Separately" mode, which splits the input list into independent string items and encodes all items in parallel. In the input we had 6 formulas and in the output we get 6 base64-encoded formulas.
H₂O – Water
O₂ – Oxygen
N₂ – Nitrogen
CH₄ – Methane
H₂O₂ – Peroxide
C₂H₆O – Ethanol
C₆H₆ – Benzene
C₉H₈O₄ – Aspirin
SOKCgk8g4oCTIFdhdGVy
T+KCgiDigJMgT3h5Z2Vu
TuKCgiDigJMgTml0cm9nZW4=
Q0jigoQg4oCTIE1ldGhhbmU=
SOKCgk/igoIg4oCTIFBlcm94aWRl
Q+KCgkjigoZPIOKAkyBFdGhhbm9s
Q+KChkjigoYg4oCTIEJlbnplbmU=
Q+KCiUjigohP4oKEIOKAkyBBc3Bpcmlu
Required options
Print encoded data on one line.
Select this option if you want
to encode each line separately.
Pro tips
Master online base64 tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinebase64tools.com/base64-encode?input=Go%20after%20dreams.%20Not%20people.&base64-no-split=true&multi-line=false
All base64 tools
Quickly split base64 data into multiple lines.
Quickly merge multi-line base64 chunks into a single line.
Quickly convert data to base64 encoding.
Quickly convert data from base64 to regular data.
Quickly generate valid random base64 data for testing.
Quickly check if the input data is valid base64.
Coming soon
These base64 tools are on the way
Print Base64 Statistics
Analyze base64-encoded data and print information about it.
Create Errors in Base64 Data
Introduce random errors in the given base64-encoded data.
Encode Data to Base26
Convert data to base26 encoding.
Decode Base26 Data
Convert base26-encoded data to regular data.
Convert Base64 to Base26
Convert data in base-64 encoding to base-26 encoding.
Convert Base26 to Base64
Convert data in base-26 encoding to base-64 encoding.
Generate Random Base26 Data
Create valid random base26-encoded data.
Encode Data to Base32
Convert data to base32 encoding.
Decode Base32 Data
Convert base32-encoded data to regular data.
Convert Base64 to Base32
Convert base-64 data to base-32 data.
Convert Base32 to Base64
Convert base-32 data to base-64 data.
Generate Random Base32 Data
Create valid random base32-encoded data.
Encode Data to Base36
Convert data to base36 encoding.
Decode Base36 Data
Convert base36-encoded data to regular data.
Convert Base64 to Base36
Convert base-64 encoded data to base-36 encoded data.
Convert Base36 to Base64
Convert base-36 encoded data to base-64 encoded data.
Generate Random Base36 Data
Create valid random base36-encoded data.
Encode Data to Base45
Convert data to base45 encoding.
Decode Base45 Data
Convert base45-encoded data to regular data.
Convert Base64 to Base45
Convert base-64 encoded data to base-45 encoded data.
Convert Base45 to Base64
Convert base-45 encoded data to base-64 encoded data.
Generate Random Base45 Data
Create valid random base45-encoded data.
Encode Data to Base46
Convert data to base46 encoding.
Decode Base46 Data
Convert base46-encoded data to regular data.
Convert Base64 to Base46
Convert base-64 encoded data to base-46 encoded data.
Convert Base46 to Base64
Convert base-46 encoded data to base-64 encoded data.
Generate Random Base46 Data
Create valid random base46-encoded data.
Encode Data to Base58
Convert data to base58 encoding.
Decode Base58 Data
Convert base58-encoded data to regular data.
Convert Base64 to Base58
Convert data in base-64 encoding to data in base-58 encoding.
Convert Base58 to Base64
Convert data encoded in base-58 to data encoded in base-64.
Generate Random Base58 Data
Create valid random base58-encoded data.
Encode Data to Base62
Convert data to base62 encoding.
Decode Base62 Data
Convert base62-encoded data to regular data.
Convert Base64 to Base62
Convert base-64 data to base-62 data.
Convert Base62 to Base64
Convert base-62 data to base-64 data.
Generate Random Base62 Data
Create valid random base62-encoded data.
Encode Data to Ascii85
Convert data to Ascii85 encoding.
Decode Ascii85 Data
Convert ascii85-encoded data to regular data.
Convert Base64 to Ascii85
Convert base-64 encoding to Ascii-85 encoding.
Convert Ascii85 to Base64
Convert Ascii-85 encoding to base-64 encoding.
Generate Random Ascii85 Data
Create valid random ascii85-encoded data.
Convert Base64 to Uuencoding
Convert base-64 data to uuencoded data.
Convert Uuencoding to Base64
Convert uuencoded data to base-64 encoded data.
Convert Base64 to Xxencoding
Convert base-64 data to xxencoded data.
Convert Xxencoding to Base64
Convert xxencoded data to base-64 encoded data.
Convert Base64 to Binary
Convert base-64 data to binary data.
Convert Binary to Base64
Convert binary data to base-64 data.
Convert Base64 to Octal
Convert base-64 encoding to octal base.
Convert Octal to Base64
Convert octal base to base-64 encoding.
Convert Base64 to Decimal
Convert base-64 encoded data to decimal numbers.
Convert Decimal to Base64
Convert decimal numbers to base-64 encoded data.
Convert Base64 to Hex
Convert base-64 data to hexadecimal base.
Convert Hex to Base64
Convert hexadecimal base to base-64 data.
Convert Base64 to File
Convert base-64 data to a downloadable file.
Convert File to Base64
Convert any file to base-64 data.
Replace Base64 Alphabet
Swap one base64 index table with another.
Remove Base64 Padding
Remove padding from the end of base64 data.
Add Base64 Padding
Append extra padding to base64 data.
Compress Base64 Data
Use a more compact base64 representation.
ROT13-encode Base64
Apply ROT13 encryption algorithm on base64 data.
ROT13-decode Base64
Decrypt previously ROT-13 encoded base64 data.
ROT32-encode Base64
Apply ROT32 encryption algorithm on base64 data.
ROT32-decode Base64
Decrypt previously ROT-32 encoded base64 data.
ROT47-encode Base64
Apply ROT47 encryption algorithm on base64 data.
ROT47-decode Base64
Decrypt previously ROT-47 encoded base64 data.
Btoa-encode Data
Encode data using the original btoa program.
Btoa-decode Data
Decode previously encoded btoa-data (run atob program).
Obfuscate Base64
Obfuscate base64 data by adding fake delimiters.
Generate Fake Base64
Create real-looking base64 data that is fake.
Generate Symmetric Base64
Create base64 data that is a palindrome.
Glitch Base64
Add glitches to base64-encoded data.
Destroy Base64
Let Zalgo destroy base64-encoded data.
Subscribe!
Never miss an update
Cool!
Notifications
We'll let you know when we add this tool
Cool!