Wat is Base64?
- Leer meer
- Gebruik
"Base64" is often seen in developer documentation and APIs. Before using Convert Files and Base64, here are the basics of what it is for.
What Base64 is
A method of turning data (binary) such as images and PDFs into a string using only letters, digits and a few symbols. The characters used are upper and lower case letters, digits, "+" and "/", and "=" at the end.
Why it is needed
Email bodies and some communication mechanisms can handle only text. Putting binary data in as it is would corrupt it. Turned into text with Base64, it can be safely put even in text-only places.
Steps (trying it)
- For "Direction", choose "File → Base64".
- Choose a small image or text with "Choose one file".
- Look at the string that appears under "Base64 after conversion".
Characteristics of Base64
- Reversible: it can be returned fully to the data before conversion.
- Expressed in text only: can be pasted anywhere.
- Size increases: about 1.3 times.
- Not a cipher: anyone can restore it.
Common uses
- The mechanism for sending attachments by email
- Embedding small images in HTML or CSS (data URLs)
- Exchanging files as text through APIs
- Putting binary in configuration files
Difference from "encryption"
Base64 only expresses data in another form, and anyone can restore it without a key. Putting a password or secret information into Base64 does not protect it.
How to recognise it
- Made only of letters, digits, "+" and "/"
- Sometimes ends with "="
- A long, meaningless line of characters
Voorbeeld
An API description said "send images in Base64". Used this tool to turn an image into Base64 and see.
Common stumbling blocks
- Mistaking it for encryption: it is no security measure.
- Line breaks included: for email and the like, line breaks may be inserted every 76 characters.
Frequently asked questions
Does Base64 make the size smaller?
No. It grows to about 1.3 times.
Samenvatting
Base64 is a method of turning data into text. Remember it is not a cipher and increases size.
Gebruik “Bestanden en Base64 omzetten” (gratis)Tools die hier goed bij passen
- Hash van een bestand controleren (SHA-256): Bereken de hash van een bestand en vergelijk hem.
- CSV en JSON omzetten: Zet direct om tussen CSV en JSON.
- ZIP-bestand maken: Pak meerdere bestanden in één ZIP.
Heeft deze handleiding je geholpen? Een kleine fooi zou veel voor ons betekenen.
Geef een fooi (¥300)Stuur een cadeau (Amazon-verlanglijst)