Base64 Encoder / Decoder
Encode text or files to Base64, or decode Base64 back to plain text. Supports Unicode, URL-safe mode, and data URIs.
Encode and decode Base64 — both plain text and file uploads (images, PDFs, binaries). Supports the URL-safe variant that swaps + and / for - and _ (needed for JWTs and many web tokens), and UTF-8 multi-byte sequences are handled correctly. Useful for inspecting tokens, embedding small images as data URIs, decoding API auth headers, and inlining files into config. The encoding runs in the browser (text is UTF-8 percent-encoded before btoa so multi-byte characters survive); pasted secrets and binary blobs never traverse a network connection.
What is Base64?
A-Z a-z 0-9 + /A-Z a-z 0-9 - _ (no padding)data:image/png;base64,...Next steps
Hash Generator
RecommendedGenerate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text — MD5/SHA-1 for checksums, SHA-256/512 for integrity.
JSON Formatter
RecommendedInstantly format, validate, or minify JSON — spot errors in seconds.
Code Formatter
Make messy code readable — beautify or minify JS, HTML, CSS, YAML, and SQL.
Regex Tester
Write and test regex patterns with real-time match highlighting.
What Is Base64 Encoding?
Common Use Cases
Inline icons in CSS
Embed small SVG or PNG icons as data URIs to eliminate an HTTP request for above-the-fold UI chrome.
JWT and OAuth payloads
Encode and decode the URL-safe Base64 segments inside JSON Web Tokens to inspect headers and claims during auth debugging.
Kubernetes secrets
Encode TLS certificates, kubeconfig fragments, and API keys for the data: field of a Secret manifest, where Kubernetes expects standard Base64.
Email attachments
Produce MIME-compatible Base64 bodies when crafting raw SMTP messages or testing email pipelines.
Frequently Asked Questions
Step-by-step guide
How to encode or decode Base64
Walk through every step with screenshots, format-specific tips, and the platform-by-platform limits you need to know.
Advertisement