⚙️ Base64
编码和解码Base64字符串
无效的Base64字符串
Advertisement
Base64 Encoder & Decoder Online
Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 ASCII characters (A-Z, a-z, 0-9, +, /). It is widely used in web development, cryptography, email encoding, and data transmission protocols.
Common Use Cases
- Email attachments: MIME encoding uses Base64 to encode binary files like images and PDFs for email transmission.
- Data URIs: Embed images directly in HTML/CSS using Base64-encoded data URLs (e.g.,
data:image/png;base64,...). - JWT tokens: JSON Web Tokens use Base64URL encoding for their header and payload sections.
- API authentication: Basic HTTP authentication encodes "username:password" in Base64 for the Authorization header.
- Configuration files: Some applications store configuration values in Base64 to avoid special character issues.
- URL encoding: Encode binary data for safe transmission in URL query parameters.