GlobalKostenlos

Base64 kodieren und dekodieren

UTF-8 als Base64 kodieren oder zurückwandeln. Kodierung, keine Verschlüsselung.

Deine Eingaben bleiben in diesem Tab. Wir erhalten weder Dateien noch Texte oder Rechenwerte.

Eingabe

Tipp: Strg + Enter zum Ausführen

Dein Ergebnis

Dein Ergebnis erscheint hier.

Die ausführliche Hilfe unten gibt es vorerst nur auf Englisch.

Über dieses Tool

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.

So funktioniert es

  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.

So wird gerechnet

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

Rechenbeispiel

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.

Beispiel für Eingabe und Ergebnis

Hello → SGVsbG8=

Einschränkungen

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

Zuletzt aktualisiert:

Häufige Fragen

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.

Fehlerbehebung

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.

Datenschutz & Kostenlos

Werden meine Eingaben gespeichert?

Deine Eingaben bleiben in diesem Tab. Wir erhalten weder Dateien noch Texte oder Rechenwerte.

Ist dieses Tool kostenlos?

Ja. Keine Anmeldung oder Zahlung nötig.

Verarbeitung in deinem Browser

Weitere nützliche Tools