BASE64.IT
[SYS_OP: B64_ENCODE_DECODE] // STATUS: STANDBY
Protocol
RFC 4648 compliant. Supports Standard Base64, URL-safe variant, and Hex encoding for maximum interoperability.
Security
Client-side processing only. Zero payload transmission to external servers. [SECURE: TRUE]
rss_feed Signal Link
Access external data nodes via the personal transmission log.
What is Base64 encoding?
Base64 is a method to convert binary data into ASCII text, using 64 printable characters. It's needed when transmitting binary data over text-only channels (email, JSON, URLs).
Supported variants
Standard Base64 (RFC 4648)
Uses characters A-Z a-z 0-9 + / with = padding. Standard for email (MIME), HTTP basic auth, data URIs.
URL-safe Base64
Replaces + with - and / with _ to be safe in URLs and filenames. Used in JWT, OAuth tokens, modern APIs.
Base64 without padding
Removes trailing = characters. Preferred in systems that don't handle padding well, like some JWT implementations.
Hex (Base16)
Represents each byte as two hex characters (0-9, A-F). Not Base64, but a common alternative to represent binary data as text, used for hashes (MD5, SHA) and color codes.
Text Encoding
Before applying Base64 or Hex, text must be converted to bytes. The text encoding choice determines how characters are transformed into numbers. Choosing the wrong encoding produces different results, especially with accented characters, symbols, or emojis.
UTF-8 (default)
Modern standard, variable 1-4 bytes per character. Compatible with ASCII for the first 128 characters, represents any Unicode character including emojis and non-Latin alphabets. Use this if you don't know what to pick.
ASCII
Basic English characters only (0-127). More restrictive: if text contains accented characters (à, è, ì) or non-ASCII symbols, encoding fails. Useful for legacy system compatibility.
Latin-1 (ISO-8859-1)
Extends ASCII to 256 characters by adding Western European accents. Historic encoding widely used before UTF-8 adoption, still present in legacy protocols and files.
UTF-16
Uses 2 or 4 bytes per character, with initial BOM (Byte Order Mark). Less common for data transmission, used internally by Windows, Java, JavaScript for strings.
How Base64 works
The process divides data into 3-byte blocks (24 bits) and represents them as 4 characters of 6 bits each. If data isn't a multiple of 3 bytes, padding characters (=) are added. This increases data size by 33%.
When to use it
- Email (MIME): Binary attachments in text messages
- Data URIs: Images embedded directly in CSS or HTML
- APIs and JSON: Binary data in text payloads
- Basic Authentication: Credentials encoded in HTTP headers
- JWT: Token headers and payloads (with URL-safe variant)
Important limits
Base64 is not encryption. It's a reversible encoding without a key: anyone can decode a Base64 string. Use real cryptography (AES, ChaCha20) when you need secrecy or integrity.