Base64 Encoder & Decoder
Awaiting transformation...Encode or Decode Any String Online
You've got a Base64 string staring at you — something likeSGvsbG8gV29ybGQ= — and you just need to know what it says. Or you're building an API request and need to encode your credentials before dropping them into an Authorization header. Either way, you don't want to open a terminal or pull up a REPL just to run two lines of code.
This tool handles both directions: paste plain text and get Base64 out, or paste a Base64 string and get readable text back. It's free, requires no account, and runs entirely in your browser — your input never touches a server.
Quick Overview
- Encode any text to Base64 instantly with real-time results.
- Decode any Base64 string back to plain text in one step.
- Works fully in your browser — no data is ever sent to a server.
- Handles standard and URL-safe Base64 (Base64URL) for JWTs.
- Copy your result in one click, ready for your code or API.
Real-World Use Case
Priya is a backend developer integrating a third-party REST API that uses HTTP Basic Auth. The API docs say to base64-encode the string clientId:clientSecret and include it in the Authorization header. She opens Utilx, pastes my_client_id:my_secret_key into the encoder, copies the output, and drops it straight into her Postman request header. Done in under 20 seconds, no context switch.
Private & Secure
All encoding and decoding happens in JavaScript on your device. Nothing is sent to any server — your data stays yours. This makes it safe for processing sensitive strings or tokens.
Instant Output
Results update as you type — no submit button, no page reload.
100% Free
No account required. Open the page and start using it immediately.
Browser-Based
Runs entirely in JavaScript. No data is sent to any server.
URL-Safe Support
Handles both standard and URL-safe Base64 (Base64URL) formats.
When to Use This Tool
API Authentication
If you're setting up HTTP Basic Authentication, use this tool to encode your username:password pair before adding it to your Authorization: Basic header.
JWT Inspection
If you receive a JWT and want to read the payload, paste the middle segment here to decode it and inspect the claims without needing a separate JWT tool.
Data URIs
If you're embedding a small icon or SVG directly in CSS or HTML as a data URI, encode the raw content here to get the Base64 string you need.
4-Step Workflow
Choose Encode to go from plain text → Base64, or Decode to go from Base64 → plain text.
Drop your text or Base64 string into the input box. Paste from clipboard or type directly.
Output appears as you type — no submit button, no waiting. Updates in real time.
Hit the Copy button to grab the output and use it in your code, API call, or document.
Related Encoding Tools
Privacy Statement
This tool runs 100% in your browser — no data is sent to any server, logged, or stored anywhere. Your input never leaves your device.
Browser Compatibility
Works in all modern browsers — Chrome, Firefox, Safari, and Edge — on desktop and mobile. No installation required.