All specs
RFC 4648RFCMust KnowProduct2006

Base64 and Base64url Encoding

Data Formats·RFC Editor
WHY YOU NEED THIS

JSON cannot carry raw binary; Base64 is how file bytes appear in API responses, data URLs, PEM blocks, and JWT segments. Know the difference between standard Base64 and Base64url.

What It Defines

Defines Base64 and Base64url alphabets for encoding arbitrary binary data as ASCII text. Base64url (URL-safe, no padding) is used in JWTs, JWK thumbprints, and many JSON API envelopes that embed binary payloads. Adds ~33% size overhead — encoding, not encryption.

Canonical (Normative)

Convenient (Practical)

base64encodingbinarytext-safejwt
Standards Body
RFC Editor

The canonical publication point for finalized RFCs. If a protocol is standardized as an RFC, the RFC Editor text is the normative final reference. Published by the IETF, IRTF, IAB, and independent stream.

Visit

Related Specs

IANAMust Know

File Formats

Every upload, download, attachment, and asset pipeline crosses these layers. Misunderstanding header vs envelope causes MIME spoofing bugs, parser differentials, and broken file validation. Start here before diving into individual format specs.

ProductData Formats
Details
RFC 7519RFCMust Know

JWT

JWTs are the token format for OIDC ID tokens and many OAuth implementations. Understanding the structure and security tradeoffs is essential.

ProductAuthentication & Authorization
Details
RFC 7468RFCShould Know

PEM

PEM is how keys and certificates appear in `.pem` files, environment variables, and Kubernetes secrets. The BEGIN/END lines are the envelope; the Base64 block is the payload.

ProductBack OfficeData Formats
Details