
Base64 Decoder and Encoder — Encode or Decode Base64 Online
Cryptic Base64 in logs and payloads slows you down. Decode to readable text or encode any text or file — URL-safe, UTF-8 safe, and instant in your browser.
Paste Base64 or text here — get decoded text or an encoded string back
or drop any file
Related encoding and token checks
A string made of three dot-separated Base64URL parts is likely a JWT, so open its header and payload in the token reader. For values inside a query string, percent-encode them instead, and to confirm a decoded file matches the original byte for byte, compare their SHA-256 fingerprints.
What you can do with Base64 Encoder/Decoder
Review the main capabilities before you begin.
- Encode text or files to Base64 instantly
- Decode Base64 strings back to readable text
- Generate URL-safe Base64 for query strings
- Encode images and other files to Base64
- Handle UTF-8 and emoji without corruption
- Embed assets inline in code or emails
Settings reference
2 settings
Available controls for Base64 Encoder/Decoder.
Mode
- ModePresets
- Switches between converting plain text into Base64 (Encode) and turning Base64 or a data URL back into readable text or the original file (Decode).Options: EncodeDecode
- URL-safeOn / Off
- Uses the URL-safe Base64 alphabet, swapping + and / for - and _ and dropping = padding, so results can be placed in URLs and filenames; file uploads always use standard Base64.
Related tools for Base64 Encoder/Decoder
Tools for common next steps after Base64 Encoder/Decoder.
Developer Tools
URL Encoder / Decoder
Encode or decode a string or full URL using component and full-URL modes in your browser.
Try it nowDeveloper Tools
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 digests from text or a file in your browser; no account is required.
Try it nowDeveloper Tools
JWT Decoder
Decode a JWT header and payload, inspect its expiry and copy the decoded data locally; no account is required.
Try it nowFrequently Asked Questions
How Base64 Encoder/Decoder helps you get it done
Real problems it solves every day — for businesses, creators, and everyday tasks. Find the use case that fits you and start.
Embed Images in HTML & CSS as Data URLs
Inline small icons, logos and SVG sprites as Base64 data URLs to save HTTP requests, ship single-file HTML emails and keep prototypes self-contained without external asset hosting
API Authentication & Bearer Tokens
Build HTTP Basic auth headers, decode bearer tokens during API debugging and inspect base64-wrapped credentials shared in Postman, curl examples and OpenAPI docs
Encoding Files for JSON & GraphQL Payloads
Wrap binary uploads (PDFs, images, audio clips) as Base64 strings so they ride safely inside JSON, GraphQL mutations and webhook bodies that only carry text
Decoding Email MIME Attachments
Pull base64-encoded attachments out of raw .eml files, SMTP logs or IMAP responses to recover lost invoices, screenshots and documents from email exports
URL-Safe Tokens for Web Apps
Generate URL-safe base64 strings for password-reset links, email-verification codes, share IDs and short URLs without breaking on "+" or "/" characters in browsers
Inspecting JWT Segments by Hand
Decode the header and payload segments of a JSON Web Token during local debugging when you do not have a full JWT decoder installed in your terminal or editor
Store Certificates & Keystores in CI/CD Secrets
Encode SSL certificates, Android signing keystores or a GCP service-account JSON file to Base64 so they can be pasted into GitHub Actions, GitLab CI or Vercel environment variables that only accept plain text.
Rescue Files Shared as Raw Base64 Text
Paste a base64 blob copied from a Slack message, bug report or email into Decode mode and use Download as file to recover the original image or PDF someone sent you as text instead of an attachment.
Mock API Responses Without a Backend
Generate base64 placeholder images or binary payloads to drop straight into Postman collections, MSW handlers or Swagger examples while the real backend endpoint is still being built.
Debug Webhook Signature Payloads
Inspect the base64-encoded body Stripe, Twilio or another provider sends with a webhook so you can manually verify a signature or replay a payload while building an integration locally.
Recover Files from Base64 API Payloads
Decode base64 to PDF, image or any other binary returned by an API or stored in a database column, then download the original file for inspection — no scripting required.
Watch each transformation land
Every photo crosses the slash untouched and comes out the other side finished.


























