Skip to content
Tejo Tools
Menu
Developer toolsProcessed on your device

Base64 encode and decode

Turn text into Base64, or Base64 back into text, as you type. Your text is processed on your device.

0 characters · 0 lines
Mode

For encoding. Decoding reads both.

Result

Your result will appear here.

0 characters · 0 lines

What it does

Base64 writes any data with 64 characters (A–Z, a–z, 0–9, + and /) so it can pass through systems built for plain text: email attachments, data URLs, JSON fields, HTTP headers and configuration files. This tool works with text:

How to use it

  1. Choose Encode or Decode, then paste or type into “Your text”. Select “Try a sample” to see an example.
  2. The result appears next to your text and updates as you type.
  3. Select Swap to move the result into “Your text” and switch between Encode and Decode, for example to check that an encoded value decodes back to your text.
  4. Select Copy to put the result on your clipboard.

Options

Good to know

Privacy

Your text is processed on your device: encoding and decoding run in your browser, and nothing you type or paste is uploaded.

Frequently asked questions

Is Base64 a kind of encryption?

No. Base64 only writes data with 64 safe characters so it can travel through email, URLs and JSON. There is no key, and anyone can decode it, so never use it to hide a password or a secret.

What is URL-safe Base64?

A variant, also called base64url, that uses - and _ instead of + and /, which have special meanings in URLs and file names, and usually leaves out the = padding. JSON Web Tokens use it. Turn on URL-safe to encode this way; decoding reads both variants without a setting.

Why does it say the value decodes to binary data?

The Base64 holds bytes that aren't text, such as an image, a zip file or encrypted data. This tool shows text only, so it stops instead of showing garbled characters. A value that was cut short can also end in the middle of a character and fail the same way.

What are the = signs at the end?

Padding. Base64 writes every 3 bytes as 4 characters, and one or two = fill the last group when the data doesn't divide by 3. Decoding works with or without them.

Is my text uploaded?

No. Encoding and decoding run in your browser, on your device, and nothing you type or paste is sent to a server.