Base64 Encode & Decode

Turn text or any file into Base64, and decode Base64 back into readable text or a file you can download. Results appear as you type, and nothing goes to a server.

0 B

0 B

Converted on your device. Nothing is uploaded.

Encoding and decoding Base64

Conversion happens as you type, with no submit button and no round trip to a server. Text is encoded as UTF-8 first, so emoji, accented letters and non-Latin scripts come back exactly as they went in, and a URL-safe option covers tokens, JWT segments and query strings. Decoding accepts standard and URL-safe Base64, with or without padding and line breaks, plus full data: URIs. Need to embed a file? Drop any PDF, image, font or archive to get its Base64 string or data URI – or paste Base64 to rebuild the original file, with its real type detected for you. Because it all happens in your browser, API keys, credentials and private files are never uploaded or logged.

  1. 1

    Choose Text → Base64, Base64 → Text, File → Base64 or Base64 → File.

  2. 2

    Type or paste your text or Base64, or drop a file – the result shows up instantly.

  3. 3

    Copy the output, press Swap to reverse it, or download the decoded file.

What makes this Base64 Encoder / Decoder handy

Text and files

Encode and decode plain text or any type of file in one place.

Unicode safe

UTF-8 encoding keeps emoji and every language intact.

URL-safe mode

Read or write the - and _ alphabet used in URLs and JWTs.

Private

Secrets and files are handled on your device and never uploaded.

What people use the Base64 Encoder / Decoder for

Read API and JWT payloads

Decode the Base64 parts of tokens, headers and API responses.

Build HTTP auth headers

Create Basic auth strings and config values.

Embed files in JSON or HTML

Turn any file into a Base64 string or data URI.

Debug email and MIME content

Decode Base64 bodies and attachments.

Also searched for as: Base64 encoder, Base64 decoder, Base64 encode online, Base64 decode online, Base64 to text and text to Base64.

Related searches

  • base64 encode and decode online
  • decode base64 string to text
  • encode text to base64
  • base64 decoder for api tokens
  • url safe base64 converter

Developer tools that keep your code to yourself

Encode Base64, minify CSS, HTML and JavaScript, and debug regular expressions without your code leaving the tab. Tokens and test data stay in your browser, results update as you type, and there's nothing to install or sign up for.

Questions & answers

What's Base64 used for?

It turns any data into plain text from 64 safe characters, so binary files and special characters can pass through email, JSON, URLs, HTML and CSS. It's an encoding, not encryption – anyone can decode it.

Is it safe to decode API keys or tokens here?

Yes. Everything happens in your browser, so nothing you paste is sent to a server or stored.

You might also need