Base64 Text & File Data URL Encoder / Decoder
TEXT STRING OR FILE PAYLOAD
Base64 Encoding & Data URL Specification Guide
Base64 encoding is widely used across MIME email attachments, JWT signatures, inline CSS images, and API data payloads to transmit binary data over text-only protocols.
Common Base64 Standard RFC 4648 Alphabets
- Standard Base64: Uses
+,/, and=padding. - Base64URL: Replaces
+with-and/with_for web safety.
Related Developer Tools
Generate JWT tokens with the JWT Encoder, format JSON payloads with the JSON Formatter, or repair malformed JSON with the JSON Repair Tool.
Frequently Asked Questions
Common questions about this tool.
What is Base64 encoding? ▼
Base64 is a binary-to-text encoding scheme (RFC 4648) that represents binary data in an ASCII string format using a 64-character alphabet (A-Z, a-z, 0-9, +, /).
Why does Base64 encoding increase data payload size? ▼
Base64 converts every 3 bytes (24 bits) of raw data into 4 ASCII characters (32 bits), resulting in a ~33% overhead increase in total string size.
What is a Data URL scheme? ▼
A Data URL (`data:image/png;base64,...`) allows inline embedding of images or CSS fonts directly inside HTML and stylesheet documents without additional HTTP requests.
Is my text or file data secure during encoding? ▼
100% secure. Base64 encoding and decoding execute locally in your browser via `btoa()` and `atob()` JavaScript APIs.
What is the difference between Base64 and Base64URL? ▼
Base64URL replaces `+` with `-` and `/` with `_`, stripping `=` padding characters to make the encoded string safe for URL query parameters and JWT tokens.
Related Free Utilities
View all tools →ChatGPT Ad Blocker
Block ChatGPT upgrade banners, upsell promo cards, and partner app ads with a lightweight, privacy-first Manifest V3 Chrome extension.
JSON diff
JSON diff. Use this privacy-first json diff directly in your browser.
URL parser
URL parser. Use this privacy-first url parser directly in your browser.
JWT debugger
JWT debugger. Use this privacy-first jwt debugger directly in your browser.