Base64 Encoder / Decoder

Base64 represents binary data with 64 plain characters. Use it for data URIs, email attachments, basic auth headers and APIs that only accept text.

Or choose a file to encodeUp to 25 MB

Runs entirely in your browser. Your input and files are not uploaded to any server.

How to use

  1. Type text, or choose a file to encode.
  2. Press Encode or Decode. Turn on URL-safe mode for JWTs and URLs (- and _ instead of + and /).
  3. Copy the result, or download decoded binary data as a file.

Examples

Text

“مرحبا” → 2YXYsdit2KjYpw==

Basic auth

“user:pass” → dXNlcjpwYXNz

Privacy

Runs entirely in your browser. Your input and files are not uploaded to any server. See the privacy policy for what is stored in your browser (favorites and history only). Privacy policy

Check it yourself: open your browser’s developer tools, select the Network tab and use the tool. Your file never appears in an upload request. Once this page is saved for offline use, you can also disconnect from the internet and keep working. Ads and anonymous visit statistics, when enabled, make their own requests, but they never receive your files or text.

Frequently asked questions

Is Base64 encryption?

No. Anyone can decode it. It is an encoding for transport, not a way to hide data.

Why is the output bigger?

Base64 uses 4 characters for every 3 bytes, so the result is about 33% larger than the input.

File to Data URIConvert an image, font or any small file into a Base64 data URI, with ready-to-paste CSS and HTML snippets and a size warning when inlining is a bad idea.
URL Encoder / DecoderPercent-encode text for URLs and query strings, decode encoded URLs, and break a full URL into its parts and query parameters.
JWT DecoderDecode a JSON Web Token to read its header and payload, with expiry and issued-at times in readable form.
Hash Generator (SHA)Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes and HMAC signatures of text using the browser’s Web Crypto API.
SVG Preview & OptimizerPreview SVG files safely and shrink them by removing comments, editor metadata and whitespace, with optional number rounding.
Color Picker & ConverterPick a colour, convert between HEX, RGB and HSL, sample colours from an image or your screen, and check contrast against white and black text.

Search tools