- What is Base64 encoding used for?
- Base64 converts binary data to printable ASCII for systems that only handle text. Common cases: embedding images in HTML as data URIs (data:image/png;base64,...), storing JWT payloads, attaching files in email via MIME, and passing binary data inside JSON API fields. The encoded output is about 33% larger than the original.
- Why does Base64 output end with = characters?
- The = signs are padding. Base64 processes bytes in groups of 3. If the input ends with 1 leftover byte, two = signs are added; 2 leftover bytes gets one =. Standard Base64 requires this padding. URL-safe Base64 usually drops it entirely.
- What is the difference between URL-safe and standard Base64?
- Standard Base64 uses + and /, which break URLs — they get percent-encoded as %2B and %2F, corrupting query strings and JWT tokens. URL-safe Base64 (RFC 4648 §5) replaces them with - and _, which URLs pass through unchanged. Use URL-safe for query parameters, JWTs, and OAuth tokens.
- Does this Base64 encoder send data to a server?
- No data leaves your browser. Encoding and decoding happen entirely in JavaScript on your device — nothing is sent to any server. To confirm: go offline, then try encoding something. The Atoolin Base64 encoder keeps working. Safe for API keys, passwords, and private text.