πŸ“¦

Base64 Encoder / Decoder

Encode text or binary files to Base64, or decode Base64 strings back to text. URL-safe mode included. Everything runs in your browser β€” no server, no tracking.

Developer Tools Runs locally No data sent
atob / btoa URL-safe file support client-side only no tracking
Plain Text
πŸ“‚ Drop a file or click to browse β€” encodes any binary or text file
β†’
Base64
πŸ’‘
Base64 encodes binary data as ASCII text using 64 printable characters (A–Z, a–z, 0–9, +, /). URL-safe mode replaces +β†’- and /β†’_, and strips = padding β€” making it safe for URLs and filenames without percent-encoding. All processing uses the browser's built-in TextEncoder / TextDecoder APIs. Nothing leaves your device.

What is Base64?

Base64 is a text encoding method that turns binary data or plain text into a limited ASCII character set. It is commonly used for email payloads, data URLs, API tokens, and moving binary content through text-only systems.

How to Use Base64 Encoder / Decoder

  1. Paste text into the input area or switch to the file mode.
  2. Choose encode or decode depending on your task.
  3. Use URL-safe mode when the result must work inside URLs or JWT-like payloads.
  4. Copy the output when the conversion looks correct.
Understand Base64 ▾
Example
Input Hello, World!
Output SGVsbG8sIFdvcmxkIQ==
Common Use Cases
  • Embed images in HTML/CSS as data URIs
  • Encode binary data for JSON or email transmission
  • Decode Base64-encoded API responses
  • Encode configuration files for environment variables
Why Use This Tool
  • Useful for data URLs, API payloads, binary transport, and quick decoding checks.
  • Supports both plain text and file-based encoding workflows.
  • Runs fully in the browser with no uploads or server processing.
Frequently Asked Questions
Is Base64 the same as encryption?

No. Base64 is encoding, not encryption. Anyone can decode it without a key. Use AES or similar for actual security.

What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _ so the encoded string can be used in URLs without percent-encoding.

Does this tool support file encoding?

Yes. Switch to the File tab to encode binary files like images, PDFs, or executables to Base64.

Is my data sent to a server?

No. All encoding and decoding runs entirely in your browser using JavaScript. Nothing is uploaded.