Paste a string to validate if it is properly Base64 encoded. Get detailed diagnostics including character set analysis, padding check, and decode test.
A valid Base64 string contains only characters from the Base64 alphabet: A-Z, a-z, 0-9, + and / (or - and _ for URL-safe variant). The string length must be a multiple of 4 when properly padded with = characters.
Common issues include trailing whitespace, line breaks, or characters outside the Base64 alphabet. This validator checks all these conditions and attempts to decode the string to confirm it produces valid binary data.
Common reasons include: spaces or line breaks in the string, characters outside the Base64 alphabet (like @, #, or !), or incorrect padding. The validator will tell you exactly what's wrong.
Technically, proper Base64 requires padding to make the length a multiple of 4. However, many implementations accept unpadded strings. This validator considers unpadded strings as 'valid but missing padding.'
URL-safe Base64 replaces + with - and / with _ to avoid conflicts with URL special characters. This variant is commonly used in JWT tokens, data URIs, and filenames.
Encodez ou décodez des chaînes Base64 directement dans votre navigateur
Convertissez du texte en Base64 ou décodez Base64 en texte brut
Convertissez des images en chaînes encodées Base64
Décodez des chaînes Base64 en images visibles
Encodez n'importe quel fichier en chaîne Base64
Decode any Base64 string back to its original file
Décodez des chaînes Base64 en documents PDF
Décodez et inspectez les tokens JWT
Encodez ou décodez des URLs avec l'encodage pourcent
Convertissez les caractères spéciaux en entités HTML
Convertissez entre les formats hex et Base64
Decode Base64 strings to plain readable text
Decode Base64 and pretty-print as formatted JSON
Generate Base64 data URIs from text or files