Skip to content
Text Mechanic
Encoding

Base64 Encode

Convert text into Base64.

Base64 represents arbitrary bytes using 64 printable characters, so binary data can travel through channels that only accept text — email bodies, JSON strings, data URIs. Text is first encoded as UTF-8, then those bytes are encoded, which is why non-ASCII characters survive the round trip. It is an encoding, not encryption: anyone can decode it.

Options

Uses - and _ instead of + and /, and drops the = padding.

Off treats the whole input as one value.

InputText is processed entirely in your browser.
0lines0words0characters0 B
Output
0lines0words0characters0 B

Options explained

  • URL-safe alphabetUses - and _ instead of + and /, and drops the = padding.
  • Process each line separatelyOff treats the whole input as one value.