᠎᠎᠎          
51K

Base64 Splitter

World's simplest base64 tool
This online program chunkifies single-line base64 data into multi-line base64 chunks. It also works with base64 data URI schemes and you can set the length of each output line. Created by encoding gurus from team Browserling.
We put a browser in your browser! Browserling
Check out our project Browserling – get a browser in your browser and browse while you browse.
Chunk Length
Line length of chunks.
Separate chunks with this char.
Data URL
If selected, deletes data scheme prefix in the output.

What is a Base64 Splitter?

learn more about this tool
This application works in your browser and it splits the input base64 string into fixed length lines. The default line length is 76 characters, which is the maximum line length of MIME (Multipurpose Internet Mail Extensions) specification but you can also use longer lines. Usually, the length should be a multiple of 4. If you have never heard about base64 before then it's a binary-to-text encoding that encodes 6 bits of binary data in an 8-bit Latin-1 character. The base64 encoding is also sometimes called radix64 representation. As an extra feature, we have added an option to change the chunk separator. It's the newline character \n by default but if you need space-separated or comma-separated base64 chunks, then just enter the character that you need in the output chunk separator option. Base64abulous!

Base64 Splitter examples

Click to use
Chunk Length 24
In this example, we separate a long base-64 text into a series of shorter 24-character base-64 snippets with one snippet per line. The splitting is performed by simply counting characters and inserting a newline symbol after every 24 symbols. Both input and output are valid base-64 data.
UHJvZ3JhbW1lcnMgbG92ZSBjb2ZmZWUuIEl0J3Mgc2NpZW50aWZpY2FsbHkgcHJvdmVuIHRoYXQgY29kZSBwcm9kdWNlZCBieSBwcm9ncmFtbWVycyBpcyBsaW5lYXJseSBjb3JyZWxhdGVkIHdpdGggY3VwcyBvZiBjb2ZmZWUgY29uc3VtZWQuIFRoZSBzbG9wZSBrIGlzIGFib3V0IDcgYW5kIHRoZSBpbnRlcmNlcHQgaXMgNS4=
UHJvZ3JhbW1lcnMgbG92ZSBj b2ZmZWUuIEl0J3Mgc2NpZW50 aWZpY2FsbHkgcHJvdmVuIHRo YXQgY29kZSBwcm9kdWNlZCBi eSBwcm9ncmFtbWVycyBpcyBs aW5lYXJseSBjb3JyZWxhdGVk IHdpdGggY3VwcyBvZiBjb2Zm ZWUgY29uc3VtZWQuIFRoZSBz bG9wZSBrIGlzIGFib3V0IDcg YW5kIHRoZSBpbnRlcmNlcHQg aXMgNS4=
Required options
These options will be used automatically if you select this example.
Line length of chunks.
Separate chunks with this char.
Remove the Data URI
This example sets the line length to 0, which means that the input base-64 data will be passed through and won't be chunkified. It also enables the option that removes the data URI from the input string, so effectively this example gets rid of the data URL signature at the beginning of base-64.
data:image/bmp;base64,Qk1UAAAAAAAAAD4AAAAoAAAACQAAAAUAAAABAAEAAAAAABYAAAASCwAAEgsAAAAAAAAAAAAA////AAAAAAAAAAAAPlgIAEEAAAAUAAAAAAN2RQAA
Qk1UAAAAAAAAAD4AAAAoAAAACQAAAAUAAAABAAEAAAAAABYAAAASCwAAEgsAAAAAAAAAAAAA////AAAAAAAAAAAAPlgIAEEAAAAUAAAAAAN2RQAA
Required options
These options will be used automatically if you select this example.
Line length of chunks.
If selected, deletes data scheme prefix in the output.
Weird Base64 Chunks
In this example, we create weird base-64 chunks. First of all, the line length is set to 3, which isn't usually allowed as 3 characters are 18 binary bits (there are 6 bits of binary information in one base-64 character) and 18 bits don't evenly split into bytes of 8 bits. Second, the chunks are separated by exclamation points, which will make every computer scientist mad.
V2lsbCB0aGUgcmVhbCBTbGltIFNoYWR5IHBsZWFzZSBzdGFuZCB1cD8KSSByZXBlYXQsIHdpbGwgdGhlIHJlYWwgU2xpbSBTaGFkeSBwbGVhc2Ugc3RhbmQgdXA/
V2l!sbC!B0a!GUg!cmV!hbC!BTb!Glt!IFN!oYW!R5I!HBs!ZWF!zZS!Bzd!GFu!ZCB!1cD!8KS!SBy!ZXB!lYX!QsI!Hdp!bGw!gdG!hlI!HJl!YWw!gU2!xpb!SBT!aGF!keS!Bwb!GVh!c2U!gc3!Rhb!mQg!dXA!/
Required options
These options will be used automatically if you select this example.
Line length of chunks.
Separate chunks with this char.
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/split-base64-into-chunks?input=UHJvZ3JhbW1lcnMgbG92ZSBjb2ZmZWUuIEl0J3Mgc2NpZW50aWZpY2FsbHkgcHJvdmVuIHRoYXQgY29kZSBwcm9kdWNlZCBieSBwcm9ncmFtbWVycyBpcyBsaW5lYXJseSBjb3JyZWxhdGVkIHdpdGggY3VwcyBvZiBjb2ZmZWUgY29uc3VtZWQuIFRoZSBzbG9wZSBrIGlzIGFib3V0IDcgYW5kIHRoZSBpbnRlcmNlcHQgaXMgNS4%3D&chunk-length=24&chunk-separator=%5Cn
All base64 tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
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.