Base64 Encode / Decode

Convert text and files to Base64. Standard, URL-safe, and Data URL formats.

Wrap:
Plain Text
0 chars / 0 bytes
Base64
0 base64 chars
Drop a file here or click to browseAny file type — converts to Base64 with auto-detected MIME type
Base64 reference

Standard Base64 uses A-Z, a-z, 0-9, +, / and = for padding. Used in emails (MIME), PEM certificates, and data URIs.

URL-safe Base64 replaces + with - and / with _, strips = padding. Used in JWTs, URL parameters, and file names.

Line wrapping: PEM (64 chars/line) for certificates, MIME (76 chars/line) for email attachments.

Size overhead: Base64 encoding increases size by ~33% (3 bytes become 4 characters).