No. 09 · PDF, image, text and code

Base64 encoder and decoder

Convert text to Base64 and back, including emoji, accented letters and Hindi or Gujarati text, which many converters garble. Choose URL-safe output for tokens and web addresses.

Free · no sign-up · runs in your browser · updated 15 Nov 2026

Direction

23 characters in, 36 out

What is a Base64 encode & decode?

Base64 writes any data using 64 safe characters (A–Z, a–z, 0–9, + and /), so it can travel through email, JSON and URLs. Every 3 bytes become 4 characters, so encoded text is about a third larger. It is an encoding, not encryption: anyone can decode it.

Features

  • Text to Base64 and Base64 to text
  • Full UTF-8: emoji, accents and Indian scripts
  • URL-safe variant (- and _, no padding)
  • Decodes both variants, with or without padding
  • Swap direction in one tap
  • Runs in your browser; nothing uploaded

How to use the Base64 encode & decode

  1. Choose Text → Base64 or Base64 → text.
  2. Type or paste your input.
  3. Tick URL-safe if the result goes into a URL or a token.
  4. Copy the result.

Standard or URL-safe?

StandardURL-safe
Characters 62 and 63+ and /- and _
Padding= at the endUsually left off
Used inEmail attachments, data: URLs, HTTP Basic authJWTs, URL parameters, file names

Both are defined in RFC 4648. The decoder here accepts either.

Example

Hello encodes to SGVsbG8=. The text is 5 bytes; Base64 works in groups of 3 bytes, so the last group is padded with one =. Text in other scripts is turned into UTF-8 bytes first: नमस्ते is 18 bytes and encodes to 24 characters.

Frequently asked questions

Is Base64 encryption?

No. It hides nothing; anyone can decode it in a second. Use it to move data through text-only systems, not to protect it.

Why does my decoded text look like junk?

The Base64 probably holds a file, such as an image or PDF, rather than text. The tool says so instead of showing broken characters.

Is what I paste uploaded?

No. Encoding and decoding happen in your browser and nothing is stored.

Last updated 15 November 2026. Made by Criza Labs. Spotted a mistake? Tell us.

No. 07 · PDF, image, text and code

JSON Formatter

Format, validate and minify JSON in your browser.

No. 08 · PDF, image, text and code

JWT Decoder

Decode a JSON Web Token in your browser to read its header and claims, with issued and expiry times in your time zone.

No. 05 · PDF, image, text and code

Case Converter

Convert text to UPPERCASE, lowercase, Sentence case, Title Case, camelCase, snake_case, kebab-case and more in one click, then copy.

Made by Criza Labs

Need a custom tool for your team or customers?

Criza Labs builds tools like this into websites, billing systems and internal apps: with your branding, your data and your workflow. Fixed scope, fixed price, and you own the code.