Premium Converters
Loading
Loading
Loading
Encode text or files to Base64 (and back). UTF-8 safe + URL-safe variant supported.
Utility
Generated on August 22, 2026
Encode text or files to Base64 (and back). UTF-8 safe + URL-safe variant supported.
Base64 encodes binary data using only 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It's the standard way to embed binary content (images, files, encryption keys) in text-only contexts: email attachments (MIME), JSON payloads, data: URLs, JWT tokens, and Basic-Auth headers. This converter is fully UTF-8 safe — non-ASCII text like Urdu, Arabic, or emoji round-trips correctly.
Formula
Base64: 3 binary bytes (24 bits) → 4 characters (6 bits each). Output size ≈ 4/3 × input size, rounded up to a multiple of 4 (with = padding).Most people meet Base64 the same way: an API contract says "send the file as a base64 string" and suddenly the request is failing with what looks like garbage on the wire. Or you've copy-pasted a JWT into the browser address bar and you want to peek inside the payload before you blame the auth team. Base64 isn't encryption — it's a translator that takes binary (any bytes — an image, a PDF, a UTF-8 string with Urdu or emoji in it) and re-expresses it using only 64 characters that survive being pasted into a JSON body, a YAML config, an email, or a URL. The tradeoff is size: encoded output is about 33% bigger than the input, which matters if you're inlining a 2MB image into HTML and wondering why your page weight tripled. Drop your string or file in, pick standard or URL-safe (URL-safe is what JWTs and OAuth tokens use — different alphabet, no padding), and round-trip it. Everything runs in the browser, so secrets and files you paste here don't leave your machine.
Base64 encodes binary data using only 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It's the standard way to embed binary content (images, files, encryption keys) in text-only contexts: email attachments (MIME), JSON payloads, data: URLs, JWT tokens, and Basic-Auth headers. This converter is fully UTF-8 safe — non-ASCII text like Urdu, Arabic, or emoji round-trips correctly. The optional URL-safe variant (RFC 4648 §5) replaces + with - and / with _ and drops padding, which is required for URL parameters and JWT segments.
Embed a small image directly in HTML/CSS as a data: URL: `data:image/png;base64,iVBORw0KG…`.
JWT (JSON Web Token) segments are Base64URL-encoded — the URL-safe variant is critical here.
HTTP Basic-Auth: `Authorization: Basic ` + base64(username:password).
MIME email attachments use Base64 to fit binary files into 7-bit-clean SMTP transport.
Embedding small SVGs in CSS background-image properties.
Jump to a ready-made conversion — useful for quick reference and sharing:
URL Encoder / Decoder
Percent-encode and decode URLs and query parameters. Supports both component and full-URI modes.
Hash Calculator (MD5 / SHA-1 / SHA-256 / SHA-384 / SHA-512)
Compute cryptographic hashes of text or files in your browser. All five major algorithms, no upload.
UUID Generator (v4)
Generate cryptographically random UUIDs (v4) in bulk. Multiple format options, copy + clear.
Markdown ↔ HTML Converter
Convert Markdown to HTML (or back) with live preview. Supports CommonMark + GFM (tables, fenced code).
Image Format Converter (PNG / JPEG / WebP)
Convert images between PNG, JPEG, and WebP in your browser. Adjustable quality. No upload — fully private.
IBAN Validator
Validate International Bank Account Numbers via Mod-97 checksum. Country detection for 60+ nations.
Lorem Ipsum Generator
Generate placeholder text — paragraphs, sentences, words, or specific byte counts. With or without classic 'Lorem ipsum' opener.
Base Converter
Convert integers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) — built for programmers debugging memory addresses, bitmasks, and hex colors.
Browse all Utility calculators & converters
See every tool in this category, plus FAQs and category-specific guides.