Quecko Logo

Free tool • Runs in your browser

Base64 encoder/decoder

Encode text to Base64, or decode Base64 back to text, with full Unicode support.

Loading tool...

Quick answer

Base64 represents data using 64 safe text characters. It is encoding rather than encryption, so anyone can decode it. The URL-safe option swaps + and / for - and _.

How to use it

  1. Paste your text.
  2. Choose encode or decode.
  3. Copy the result.

Example

Input
Hello
Output
SGVsbG8=

Common errors and how to fix them

Invalid Base64
The input contains other characters or is incomplete.

Frequently asked questions

How do I Base64 encode a string?

Paste your text here, choose Encode, and copy the result.

How do I decode Base64 online?

Choose Decode, paste the Base64 text, and the original text appears.

How does Base64 encoding work?

It takes 3 bytes at a time and represents them as 4 characters from a set of 64 safe text characters.

How do I Base64 encode in Linux or the terminal?

Run echo -n 'text' | base64. The -n stops a line break from being included.

How do I Base64 encode a file?

On Linux, use base64 file. For images, use our Image to Base64 tool.

How do I Base64 encode in Python?

Use base64.b64encode(text.encode()).decode().

How do I Base64 encode for Basic Auth?

Encode username:password. Base64 does not protect those details, so always use HTTPS.

Is Base64 encryption?

No. Anyone can decode it, so never use it to hide secrets.

What is URL-safe Base64?

It replaces + and / with - and _, so that the text can be used safely in URLs.

Is what I paste uploaded?

No. Everything runs in your browser and nothing is sent to Quecko.

More developer tools

Need something built for your business?

Quecko designs and builds AI, Web3 and custom software products.

Start a Project