What Base64 encoding does
Base64 represents binary data as ASCII text using sixty-four safe characters plus optional padding. It is not encryption — anyone can reverse it — so treat Base64 as transport encoding for text channels that dislike raw bytes.
When you base64 encode text online, UTF-8 bytes become a compact alphabet of A–Z, a–z, 0–9, +, and /. That output fits JSON string fields, email bodies, and query parameters that would break on unescaped binary.
This base64 converter uses TextEncoder before btoa(), matching what Node.js Buffer.from(str, 'utf8').toString('base64') and Python base64.b64encode produce for the same input.
Encoded output grows roughly 33% compared to the original bytes. Small snippets encode instantly; very large pasted files may feel sluggish — use dedicated image or PDF tools for big binaries.