InternationalUtilisation gratuite

Encodeur et décodeur Base64

Encodez UTF-8 en Base64 ou décodez-le. Encodage, pas chiffrement.

Vos données restent dans cet onglet. Nous ne recevons ni fichiers, ni textes, ni valeurs de calcul.

Données

Astuce : Ctrl + Entrée pour lancer

Votre résultat

Votre résultat apparaîtra ici.

L’aide détaillée ci-dessous n’est pour l’instant disponible qu’en anglais.

À propos de cet outil

Base64 represents bytes using 64 safe characters, so binary data or non-ASCII text can travel through systems that expect plain text: email attachments, data URLs, HTTP basic authentication headers and many APIs. This tool encodes text as UTF-8 and then Base64, or decodes Base64 back to readable text.

Base64 is not encryption. Anyone can decode it, so never treat a Base64 string as hidden or secure.

Mode d’emploi

  1. Paste the text to encode, or the Base64 string to decode.
  2. Choose encode or decode.
  3. Run the tool.
  4. Copy the result. For images, use image to Base64 instead.

Fonctionnement du calcul

Encoding converts the text to UTF-8 bytes and then to standard Base64 with padding. Decoding removes whitespace, checks the Base64 format and decodes the bytes as strict UTF-8, refusing invalid byte sequences.

UTF-8 ⇄ Base64

Exemple détaillé

Encoding "Café €5" produces Q2Fmw6kg4oKsNQ==. The accented é and the euro sign take two and three bytes in UTF-8, which is why the result is longer than the seven visible characters suggest, and the two = signs pad it to a multiple of four. Decoding Q2Fmw6kg4oKsNQ== returns Café €5.

Exemple d’entrée et de résultat

Hello → SGVsbG8=

Limites

  • Text only; binary output is refused when decoding.
  • Standard alphabet with padding.
  • Up to 100,000 characters.

Dernière mise à jour:

Questions fréquentes

Is Base64 secure?

No. It is an encoding that anyone can reverse instantly.

Does it support Base64URL (with - and _)?

It uses standard Base64 with + and /. For Base64URL, replace - with + and _ with /, and add = padding before decoding.

Why does decoding fail on some strings?

The string may not be valid Base64, or it may encode binary data (such as an image) that is not UTF-8 text.

Dépannage

Decoding gives an error for a JWT segment.

JWTs use Base64URL without padding. Use the JWT decoder.

A data URL will not decode.

Remove the "data:...;base64," prefix and decode only the part after the comma.

Line breaks in the Base64 cause problems.

Whitespace is removed automatically before decoding; check for other characters such as quotes.

Confidentialité & Utilisation gratuite

Mes données sont-elles stockées ?

Vos données restent dans cet onglet. Nous ne recevons ni fichiers, ni textes, ni valeurs de calcul.

Cet outil est-il gratuit ?

Oui. Aucune inscription ni paiement requis.

Traitement dans votre navigateur

D’autres outils utiles