Base64-Encoder / -Decoder
Text schnell in Base64 kodieren oder Base64 zurück in Text dekodieren.
Base64 ist ein Kodierungsverfahren zur Umwandlung von Binärdaten in ASCII-Zeichenketten. Häufige Anwendungen:
- Binärdaten in URLs oder E-Mails übertragen
- Bilddaten in JSON oder XML einbetten
- Zugangsdaten kodieren (ist jedoch keine Verschlüsselung)
- HTTP-Basic-Authentication-Kodierung
Warnung: Base64 ist eine Kodierungsmethode, keine Verschlüsselung. Verwenden Sie es nicht zum Schutz sensibler Daten.
Empfohlene naechste Schritte
Verwandte Tools
URL-Encoder / -Decoder
URLs kodieren und dekodieren
HTML-Entitäten Encoder / Decoder
Sonderzeichen in HTML-Entitäten kodieren oder dekodieren
Zeichenketten-Escaping / Unescaping
Zeichenketten für HTML, JSON, JavaScript, SQL und mehr escapen und unescapen
Zahlenbasis-Konverter
Zahlen zwischen Binär, Oktal, Dezimal und Hexadezimal konvertieren
Zeitstempel-Konverter
Zwischen Unix-Zeitstempeln und lesbaren Daten konvertieren
ASCII / Unicode-Suche
ASCII- und Unicode-Zeichencodes suchen und nachschlagen
Anleitung
Text eingeben oder einfügen
Geben Sie Ihren Text, Code oder Ihre Daten in das Eingabefeld ein.
Optionen auswählen
Wählen Sie die gewünschte Umwandlung oder das Format aus.
Ergebnis kopieren
Kopieren Sie die Ausgabe mit einem Klick in Ihre Zwischenablage.
Warum dieses Werkzeug nutzen
100 % Kostenlos
Keine versteckten Kosten, keine Premium-Stufen — jede Funktion ist kostenlos.
Keine Installation
Läuft vollständig in Ihrem Browser. Keine Software zum Herunterladen oder Installieren.
Privat & Sicher
Ihre Daten verlassen niemals Ihr Gerät. Nichts wird auf einen Server hochgeladen.
Funktioniert auf Mobilgeräten
Vollständig responsiv — nutzbar auf Smartphone, Tablet oder Desktop.
Base64 Encoding and Decoding Explained
Key Takeaways
- Base64 converts binary data into ASCII text, making it safe to transmit through text-only channels like email and JSON.
- Base64 is an encoding scheme, not encryption — it provides no security and can be decoded by anyone.
- All encoding and decoding happens in your browser — your data stays on your device.
Base64 encoding is one of the most fundamental data transformation techniques in web development. It represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /), enabling safe transmission of files, images, and binary content through text-based protocols. Understanding Base64 is essential for working with APIs, email systems, and data URIs.
Base64 encoding increases data size by approximately 33% compared to the original binary.
Size Overhead
Key Concepts
How Base64 Works
Base64 takes every 3 bytes (24 bits) of input and splits them into four 6-bit groups, mapping each to one of 64 printable ASCII characters. Padding with '=' is added when input length is not a multiple of 3.
Data URI Embedding
Base64-encoded images can be embedded directly in HTML and CSS using data URIs (data:image/png;base64,...), eliminating extra HTTP requests for small assets.
Email Attachments (MIME)
Email protocols like SMTP are text-based. Base64 encoding via MIME allows binary attachments like images and documents to travel safely through email systems.
Base64url Variant
The URL-safe variant replaces '+' with '-' and '/' with '_' to avoid conflicts in URLs and filenames. This variant is used extensively in JWTs and OAuth tokens.
Pro Tips
Never use Base64 for security — it is trivially reversible. Use proper encryption (AES, RSA) for sensitive data.
Avoid Base64-encoding large images inline; the 33% size increase negates the benefit of saving an HTTP request.
Use Base64url (RFC 4648 §5) instead of standard Base64 when the output will appear in URLs or filenames.
Most modern browsers support btoa() and atob() natively, but they only handle Latin-1 characters — use TextEncoder for Unicode.
All Base64 encoding and decoding is performed entirely in your browser. Your data is never transmitted to any external server, making this tool safe for sensitive content.