📦 Base64 Kódovanie a Dekódovanie

Kódujte textové reťazce do Base64 alebo obnovujte text z Base64 reťazcov rýchlo a bezpečne.

Prečo používame kódovanie Base64?

Kódovanie Base64 je mechanizmus navrhnutý na zobrazenie binárnych údajov v textovom formáte (ASCII znaky), vďaka čomu sa nepoškodia a predíde sa chybám pri prenose.

Príklady použitia Base64

  • Obrázky v HTML/CSS: Vkladanie grafiky v textovej podobe. MIME encoding uses Base64 to embed binary files in text-based emails.
  • E-mailové prenosy: Base64 posiela pripojené súbory. Embedding images directly in HTML/CSS using data:image/png;base64,...
  • Sieťové hlavičky HTTP: Požadované pre základné preverenia pri API. HTTP Basic Auth encodes credentials in Base64.
  • Formát JWT tokenov: Údaje a záhlavie sú zobrazené cez technológiu Base64. JWT payloads are Base64URL-encoded.

Converts data between binary and ASCII using Base64 encoding. Used for email attachments, data URLs, API payloads, and embedded images.

Key Facts

  • Increases data size by ~33%
  • Uses 64 characters: A-Z, a-z, 0-9, +, /
  • base64url variant uses - and _ for URL safety
  • = padding ensures output is multiple of 4

Frequently Asked Questions

What is Base64?

Binary-to-text encoding using 64-character alphabet. Ensures safe transmission through text-only channels.

Why use Base64?

For email attachments, data URLs, JSON binary data, and HTTP Basic Auth headers.

Is Base64 encryption?

No — it is encoding, not encryption. Anyone can decode it. Use AES/RSA for security.