Base64 is a binary-to-text encoding that represents arbitrary bytes using 64 ASCII characters (A–Z, a–z, 0–9, +, /). Every 3 bytes of input become 4 characters of output. It exists because many text-based protocols (email headers, JSON, URLs, HTTP headers) cannot transport raw binary safely — Base64 makes binary survive these contexts unchanged.
This tool encodes plain text or binary data to Base64 and decodes Base64 back to its original form. It supports both standard Base64 and URL-safe Base64 (where + and / become - and _, used in JWTs and URL parameters). It also handles padding correctly and gives clear errors on malformed input.
Important: Base64 is encoding, not encryption. Anyone can decode it instantly. It provides zero confidentiality. Use it for transport encoding only; use proper encryption (AES, NaCl) when you need to hide data.
Base64, keyfi byte'ları 64 ASCII karakterle (A–Z, a–z, 0–9, +, /) temsil eden bir ikili-to-text kodlamasıdır. Her 3 byte girdi 4 karakter çıktıya dönüşür. Birçok metin tabanlı protokol (email header, JSON, URL, HTTP header) ham binary'yi güvenle taşıyamadığı için var — Base64 binary'nin bu bağlamlardan değişmeden geçmesini sağlar.
Bu araç düz metin veya binary veriyi Base64'e kodlar ve Base64'ü orijinaline geri çözer. Standart Base64'ün yanı sıra URL-safe Base64'ü de destekler (+ ve / yerine - ve _; JWT ve URL parametrelerinde kullanılır). Padding'i doğru ele alır ve hatalı girdide net hata verir.
Önemli: Base64 şifreleme değil, kodlamadır. Herkes anında çözebilir. Sıfır gizlilik sağlar. Yalnızca taşıma kodlaması için kullanın; veriyi gizlemek istediğinizde uygun şifreleme (AES, NaCl) kullanın.
When Base64 actually matters
Base64 gerçekten ne zaman önemli
Email attachments. SMTP is a text protocol. Binary files attached to emails are Base64-encoded so they pass through unchanged. This is invisible to users but is how email worked for decades.
Basic Auth headers. HTTP Basic Auth concatenates username:password and Base64-encodes the result into the Authorization header. This is encoding for transport, not security — Basic Auth offers no confidentiality without TLS.
Data URIs. Embedded images in HTML (data:image/png;base64,...) carry the binary inline as Base64. Useful for small icons; wasteful for larger images (33% size overhead).
Email ekleri. SMTP bir metin protokolüdür. Email'lere eklenen binary dosyalar Base64 ile kodlanır; böylece değişmeden geçer. Kullanıcıya görünmez ama email onlarca yıl böyle çalıştı.
Basic Auth header'ları. HTTP Basic Auth, kullanıcıadı:şifre birleştirir ve sonucu Base64 ile kodlayıp Authorization header'ına koyar. Taşıma için kodlamadır, güvenlik değil — TLS olmadan Basic Auth gizlilik sunmaz.
Data URI'ler. HTML'deki gömülü resimler (data:image/png;base64,...) binary'yi Base64 olarak satır içi taşır. Küçük ikonlar için faydalı; büyük resimler için israftır (%33 boyut artışı).
Common Base64 confusions
Yaygın Base64 karışıklıkları
Treating Base64 as encryption. It isn't. Decoding takes a fraction of a second; there's no key.
Mixing standard and URL-safe variants. Tokens that should use URL-safe Base64 (JWTs) will break when passed through a standard decoder if + or / appear.
Forgetting padding. Some decoders require trailing = padding; others accept its absence. Be explicit if interoperating across systems.
Padding URL-safe tokens. URL-safe Base64 sometimes omits padding by convention. If your decoder requires it, add the appropriate = characters back.
Base64'ü şifreleme sayma. Değildir. Çözme saniyenin bir kesri sürer; anahtar yoktur.
Standart ile URL-safe varyantları karıştırmak. URL-safe Base64 kullanmalı token'lar (JWT) standart decoder'dan + veya / içeriyorsa kırılır.
Padding'i unutmak. Bazı decoder'lar takip eden = padding'i gerektirir; bazıları yokluğunu kabul eder. Sistemler arası uyumda açık olun.
URL-safe token'lara padding eklemek. URL-safe Base64 bazen padding'i konvansiyon olarak atar. Decoder'ınız gerektiriyorsa uygun = karakterlerini geri ekleyin.
Frequently asked questions
Sık sorulan sorular
Why is Base64 33% larger than the input?
Every 3 bytes → 4 characters, so output size is approximately 4/3 of input. Plus padding adds 0–2 characters.
What's the difference between standard and URL-safe Base64?
Standard uses + and /; URL-safe uses - and _ in their place (so the result can appear in URLs without escaping). The character set difference is the only thing.
Can I encode an entire file?
Yes — Base64 encoding works on any byte sequence. Be aware of the 33% size overhead; for large files, compression first then Base64 is more efficient.
Is Base64 the same as Base32 or Base16?
All are binary-to-text encodings using different alphabets. Base16 (hex) uses 16 characters (4 bits/character); Base32 uses 32; Base64 uses 64. Base64 is the most space-efficient of the three.
Base64 neden girdiden %33 daha büyük?
Her 3 byte → 4 karakter; çıktı boyutu girdinin yaklaşık 4/3'üdür. Artı padding 0–2 karakter ekler.
Standart ile URL-safe Base64 farkı nedir?
Standart + ve / kullanır; URL-safe yerine - ve _ kullanır (sonuç URL'de escape olmadan görünebilir). Tek fark karakter setidir.
Dosyanın tamamını kodlayabilir miyim?
Evet — Base64 her byte dizisinde çalışır. %33 boyut artışına dikkat; büyük dosyalar için önce sıkıştırma sonra Base64 daha verimlidir.
Base64 Base32 veya Base16 ile aynı mı?
Hepsi farklı alfabe kullanan ikili-to-text kodlamalardır. Base16 (hex) 16 karakter (karakter başına 4 bit) kullanır; Base32 32; Base64 64. Üçü içinde en alan verimli Base64'tür.