Skip to content
LovelyTools
EN

Base64 Encoder

Encode text to Base64 or decode it back, with full UTF-8 and a URL-safe option.

Processed locally on your device — nothing is uploaded.

About the Base64 Encoder

Base64 represents data using only 64 safe characters, which is why it is used in email attachments, data URLs, HTTP Basic authentication headers and JSON Web Tokens. This encoder converts any text — including accented letters, Arabic, Chinese and emoji — by first turning it into UTF-8 bytes, the way servers expect.

Need the result in a URL or a filename? Enable URL-safe mode to replace + and / with - and _ and drop the padding, as used by JWTs.

How to use the Base64 Encoder

  1. Type or paste the text you want to encode.
  2. Optionally enable URL-safe output or encode each line separately.
  3. Copy the Base64 result, which updates as you type.

Features

  • Encode and decode
  • Full UTF-8 support
  • URL-safe Base64 (Base64URL)
  • Line-by-line mode
  • Live output and download

Supported formats

  • Plain text
  • .txt
  • .json
  • .csv
  • .xml

Frequently asked questions

Is Base64 encryption?

No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect passwords or private data.

Why is the Base64 output longer than my text?

Base64 uses 4 characters for every 3 bytes, so the output is about 33% larger than the input.