Kodlama
Base64
Base64 kodlama ve çözme — metin ve dosyalar, doğrudan tarayıcıda.
Base64 is a binary-to-text encoding that represents arbitrary bytes using 64 printable ASCII characters (A–Z, a–z, 0–9, plus + and /). It exists so binary data — images, archives, cryptographic keys — can pass unchanged through channels that were designed for text only.
This tool encodes and decodes both plain text and files. Everything runs client-side in your browser: the input never leaves your machine, which makes it safe for tokens, private keys, and other sensitive data.
How to use it
- Encode text: pick the Encode / Text mode, paste your string, and copy the Base64 result.
- Encode a file: switch to File mode and choose a file — you get its Base64 representation, ready for a data URI or JSON field.
- Decode: switch to Decode mode and paste a Base64 string; if it decodes to a known file type you can download the original file.
Common uses
- Embedding small images or fonts directly in CSS/HTML via data: URIs.
- Putting binary payloads inside JSON, XML, or form fields.
- Encoding credentials for the HTTP Basic Authorization header.
- Storing or transmitting PEM keys and certificates.
Things to keep in mind
Base64 is not encryption — anyone can decode it. It only changes the representation of data, not its confidentiality.
Encoded output is about 33% larger than the input because every 3 bytes become 4 characters.
For URLs and file names use Base64URL, which swaps + and / for - and _ and often drops the = padding.
Bu araç hakkında makale: Base64: kodlama neden gerekli ve nasıl çalışır
Sıkça sorulan sorular
Base64 asıl olarak ne için kullanılır?
Base64, ikili verileri düz ASCII metne dönüştürerek yalnızca metinle çalışan sistemlerden (e-posta gövdeleri, JSON verileri veya CSS/HTML içine gömülen küçük bir görsel gibi) güvenle geçmesini sağlar.
Kodlanmış çıktı neden girdimden daha büyük?
Base64, her 3 bayt girdiyi 4 çıktı karakterine paketler, bu yüzden kodlanmış metin orijinalden yaklaşık %33 daha büyüktür. Bu beklenen bir durumdur, hata değildir.
Dosyam veya metnim bir yere yükleniyor mu?
Hayır. Kodlama ve kod çözme tamamen tarayıcınızda JavaScript ile yapılır — hiçbir şey sunucuya gönderilmez, bu yüzden çevrimdışı da çalışır.
Standart Base64, Base64URL'den nasıl farklıdır?
Base64URL'de + ve / karakterleri - ve _ ile değiştirilir, böylece dize ek bir percent-encoding olmadan güvenle bir URL'ye veya dosya adına eklenebilir. JWT tam olarak bu varyantı kullanır.
Satırın sonundaki = karakteri ne anlama gelir?
Bu, son 3 baytlık blokta kaç baytın eksik olduğunu gösteren bir dolgu (padding) karakteridir. Her zaman zorunlu değildir — bazı sistemler onu bilerek atlar.