᠎᠎᠎          
51K

Base64 validator

World's simplest base64 tool

This online program validates base64 data. It quickly checks if the input data is valid (decodable) base64 without actually decoding it. The validation algorithm tests if all the input characters are base64 alphabet characters and whether the data and padding are of the right length. In the output, you get a green or red base64 status badge. In the case of incorrect data, the program also displays all invalid characters and their positions to the screen. Created by encoding gurus from team Browserling.
we wrote the curl cookbook!
Super exciting news – we just wrote the Curl Cookbook full of organic, nutritious, and completely irresistible curl recipes. Check it out!
Whitespace Check
Allow spaces and tabs in the input base64 data.
Padding Check
If the base64 data length is not a multiple of four, then by default it's padded with the symbol "=". Select this option to make padding optional.
Base64 validator tool What is a base64 validator?
This application works in your browser and it checks the correctness of the input base64 data. It doesn't decode the data but uses multiple criteria to assess the validity of the data. First of all, it checks all the characters in the input data. Correct base64 data consists only of ASCII characters that include: lowercase and uppercase English letters ("a-z" and "A-Z"), regular digits ("0-9"), symbols "+" and "/", as well as the padding symbol "=" (which may only appear at the end of the string). If the entered base64 contains any other characters, then this data is considered to be invalid. In this case, a red badge is displayed and all unknown symbols and their indexes are printed to the screen. The next base64 test is to check the length of the data. Base64 always encodes data in buckets of four symbols. For every three input bytes (24 bits), four 6-bit characters from the base64 alphabet are used (which also equal 24 bits). If the input data contains less than three bytes, then the missing bits are compensated with the padding character "=". If the data passes all these tests, then a green badge is displayed in the output. By default, the program strictly checks that the length of the text is a multiple of four, but if you activate the "Allow Missing Padding" option, then it also accepts data with missing "=" characters at the end. The input base64 can be either continuous or broken into several lines. Sometimes when copying base64 data, the application where it's copied from introduces unnecessary whitespaces. If you want to allow such whitespace characters (spaces and tabs) in the data, then activate the "Allow Whitespaces" option. Base64abulous!
Base64 validator examples Click to use
Strict Base-64 Check
This example performs strict base-64 validation. It checks that the data contains only the symbols from the base-64 index table and that there are no spaces or tabs between the symbols. It also checks that the data is aligned on a four-byte boundary via the padding symbol "=". The given base-64 data successfully passes all tests and a green success badge is displayed in the status area.
VGhlIEdyZWF0IFdhbGwgb2YgQ2hpbmEgaXMgdGhlIGJpZ2dlc3Qgb2JqZWN0IGV2ZXIgbWFkZSBieSBodW1hbnMuIEl0IHN0cmV0Y2hlcyBhY3Jvc3MgbW91bnRhaW5zLCBkZXNlcnRzLCBhbmQgZ3Jhc3NsYW5kcyBmb3Igb3ZlciA2LDAwMCBraWxvbWV0ZXJzLg==
Required options
These options will be used automatically if you select this example.
Allow spaces and tabs in the input base64 data.
If the base64 data length is not a multiple of four, then by default it's padded with the symbol "=". Select this option to make padding optional.
Validate a Base-64 Image
In this example, we check the validity of a base-64 string that contains an encoded PNG image. We know that it's a PNG image because it has a data URL prefix with the "image/png" MIME type. As the input base-64 contains chunks of data with many spaces, tabs, and newlines, we activate the "Allow Whitespaces" option so that all these whitespaces aren't considered an error. We also enable the "Allow Missing Padding" option because the data is missing one padding character "=" at the end. The result of the check is green, which means that this base-64 encoded PNG image is valid.
data:image/png;base64,iV BORw0K GgoAAAAN SUhEUgAAAA oAAAAK CAYAAACN Ms+9AAAACX BIWXMA AAsTAAAL EwEAmpwYAA AAAXNS R0IArs4c 6QAAAARnQU 1BAACx jwv8YQUA AACoSURBVH gBdZAt DsJAEIXf EhSYGnQ5Ap yAQ3AA ztAEgQKN 4wgsFyAoZH 9sRauq W11T09p2 J5PN7nbTl0 xmxDc/ b8SoBEt1 y3m/g6MVZv rlgEzh yQPfGZBU PrimVfaEsu YcSSDY cn05KZBu CVVEH6DrTc Prz+Dj zPcKbYYm H28GDjZA8T SmnBvt id1gVjsg GaDu+A58r1 zLxDKj i6ZlSK86 hPwqLTF/+J ImJ141 BH4rDf8A AAAASUVORK 5CYII
Required options
These options will be used automatically if you select this example.
Allow spaces and tabs in the input base64 data.
If the base64 data length is not a multiple of four, then by default it's padded with the symbol "=". Select this option to make padding optional.
Invalid Base-64
This example tests a short base-64 message and gives a negative result with a red error badge. In the testing process, it found that the message contains several characters that fall outside of the base-64 encoding alphabet. All these invalid characters are displayed to the screen together with their index positions in the message.
SG(VsbG8g~ZGFya25lc3MgbXkgb2_xkIGZyaWVuZC*E=
Required options
These options will be used automatically if you select this example.
Allow spaces and tabs in the input base64 data.
If the base64 data length is not a multiple of four, then by default it's padded with the symbol "=". Select this option to make padding optional.
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/validate-base64?input=VGhlIEdyZWF0IFdhbGwgb2YgQ2hpbmEgaXMgdGhlIGJpZ2dlc3Qgb2JqZWN0IGV2ZXIgbWFkZSBieSBodW1hbnMuIEl0IHN0cmV0Y2hlcyBhY3Jvc3MgbW91bnRhaW5zLCBkZXNlcnRzLCBhbmQgZ3Jhc3NsYW5kcyBmb3Igb3ZlciA2LDAwMCBraWxvbWV0ZXJzLg%3D%3D&allow-whitespaces=false&allow-missing-padding=false
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 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.