Eine Datei in Base64 umwandeln (kostenlos)
- Wählen
- Ansehen
- Kopieren
You want to put an image or PDF into an email body or program code as text. Convert Files and Base64 converts a file to a Base64 string, and converts it back to the original file. Files and text are converted inside this device and sent nowhere.
Steps (file → Base64)
- For "Direction", choose "File → Base64".
- With "Choose one file", choose the file to convert.
- To embed an image in HTML and the like, tick "Use data URL format (data:…;base64,)".
- After conversion, the string appears under "Base64 after conversion".
- Copy it with "Copy result" and use it.
Steps (Base64 → file)
- For "Direction", choose "Base64 → file".
- Paste the string into "Base64 text".
- Enter a "File name to save" (with extension, for example image.png).
- Save with "Save as file".
What Base64 is
A string that expresses binary data (images, PDFs and so on) using only letters, digits and a few symbols. It is used when you want to put file data somewhere that can only handle text.
Gut geeignet für
- Embedding small images directly in HTML or CSS
- Sending a file as text to an API
- Putting small data in a configuration file
- Turning received Base64 back into a file
Beispiel
Wanted to embed a small icon image directly in HTML. Ticked "Use data URL format", converted, and pasted the result into the HTML src.
Common stumbling blocks
- The result is long: Base64 makes the character count about 1.3 times the original data.
- "Could not read as Base64." appears: characters are missing or extra characters are included.
- The file won't open: the extension of the file name to save differs from the original format.
Frequently asked questions
Is it encrypted?
No. Base64 is not encryption. Anyone can restore it. It cannot be used to protect secret information.
Are files sent anywhere?
No. They are converted inside the browser.
Zusammenfassung
Choose the direction, enter a file or text and use the result. Note that Base64 is not a cipher.
„Dateien und Base64 umwandeln“ verwenden (kostenlos)Passende Werkzeuge dazu
- Hashwert (SHA-256) einer Datei prüfen: Den Hashwert einer Datei berechnen und vergleichen.
- CSV und JSON umwandeln: Sofort zwischen CSV und JSON umwandeln.
- ZIP-Datei erstellen: Mehrere Dateien in einer ZIP-Datei bündeln.
Wenn Ihnen diese Anleitung geholfen hat, freuen wir uns über ein kleines Trinkgeld.
Trinkgeld senden (¥300)Geschenk senden (Amazon-Wunschliste)