Base64 Encoder & Decoder

Convert text or any file to Base64, and decode Base64 back to readable text or a downloadable file. Results appear as you type, and nothing is sent to a server.

0 B

0 B

Converted on your device. Nothing is uploaded.

How to Use Base64 Encoder / Decoder Online

This Base64 encoder and decoder converts as you type, with no submit button and no server round trip. Text is encoded as UTF-8 first, so emoji, accented letters and non-Latin scripts survive the round trip intact, and you can switch on URL-safe Base64 for tokens, JWT segments and query strings. Decoding accepts standard and URL-safe Base64, with or without padding or line breaks, as well as 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 automatically. Because encoding happens entirely 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 appears instantly.

  3. 3

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

Why use this Base64 Encoder / Decoder

Text and files

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

Unicode safe

UTF-8 encoding keeps emoji and every language intact.

URL-safe option

Produce or read the - and _ alphabet used in URLs and JWTs.

Private

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

Popular uses for the Base64 Encoder / Decoder

Decode API and JWT payloads

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

Encode credentials for HTTP headers

Create Basic auth strings and config values.

Embed files in JSON or HTML

Convert any file into a Base64 string or data URI.

Debug email and MIME content

Decode Base64 bodies and attachments.

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

People also search for

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

Free developer tools that never see your code

Encode Base64, minify CSS, HTML and JavaScript, and debug regular expressions with client-side developer tools. Your code, tokens and test data stay in your browser tab, results appear instantly as you type, and there's nothing to install or sign up for.

Frequently asked questions

What is Base64 encoding used for?

Base64 turns any data into plain text made of 64 safe characters, so binary files and special characters can travel 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. Encoding and decoding run entirely in your browser, so nothing you paste is sent to a server or stored.

Related tools