Base64 Encode/Decode

Input
Length: 0
Output
Length: 0

How Base64 works

  • Grouping: every 3 bytes (24 bits) are split into 4 groups of 6 bits.
  • Alphabet: each 6-bit value maps to one character from Aโ€“Z, aโ€“z, 0โ€“9, +, /.
  • Padding: if input length is not a multiple of 3, pad with 0 bits and append = or ==.
  • Text safety: Base64 is for transporting binary over text channels; it is not encryption.