Free online text tool

Base64 Encoder Online

Base64 Encoder turns your text into Base64 code. Type or paste your text, click the button and copy the Base64. It is free and runs in your browser.

Base64 Encoder Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Base64 Encode Example

Before
The quick brown fox jumps over the lazy dog.
After
VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Base64 Encoder do?

This tool converts text into Base64. Base64 is a way of writing text or data using only letters, numbers, + and /, and it often ends with one or two = signs. It is used to send text safely through emails, web pages, tokens and configuration files that only handle plain text.

Type or paste your text and click the button. Text in any language and emoji work because the text is encoded as UTF-8 by default. You can also make the result URL-safe, which swaps + and / for - and _, and remove the = signs at the end.

Base64 makes text longer, by about a third, and it is not encryption. Anyone can decode it, so do not use it to hide secrets.

Base64 encode examples

Unless an option is named, the text is encoded as UTF-8 and the result is standard Base64 with the = signs kept.

SettingBeforeAfter
Sentence
The quick brown fox jumps over the lazy dog.
VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=
Short text
Hello World
SGVsbG8gV29ybGQ=
Accents, UTF-8
café
Y2Fmw6k=
Accents, UTF-8 off
café
Y2Fm6Q==
Emoji, UTF-8
Hi 👋
SGkg8J+Riw==
Two lines
Hello
World
SGVsbG8KV29ybGQ=
URL-safe form
<<???>>
PDw_Pz8-Pg==
Remove the = signs
Hello
SGVsbG8
URL-safe and no = signs
<<???>>
PDw_Pz8-Pg

How to encode text to Base64

  1. 1
    Add your text
    Type or paste your text into the box, or import a text file.
  2. 2
    Choose the options
    Leave Encode as UTF-8 text ticked for normal text and other languages. Tick URL-safe or Remove the = signs only if you need them.
  3. 3
    Click Encode to Base64
    Your text is turned into Base64. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the Base64 where you need it.

When to encode text to Base64

Good for

Sending text through systems that only accept plain characters, such as emails, URLs, JSON, tokens and config files, and for preparing test data.

Check first

Base64 is not encryption, so anyone can decode it, and you should not use it to protect passwords or private data. This tool runs in your browser and does not upload your text. It encodes text, not pictures or files.

Other tools

To turn Base64 back into text, try Base64 Decoder. To encode a web address, try Url Encode. To convert HTML characters, try Html Entities Converter.

Base64 encode FAQ

What does the Base64 Encoder tool do?

It converts your text into Base64 code.

How do I encode text to Base64?

Type or paste your text into the box and click Encode to Base64. The Base64 appears in the same box, and you can copy it with the Copy button.

What is Base64?

Base64 is a way of writing text or data using only letters, numbers, + and /, so it can travel safely through systems that only handle plain text. It often ends with one or two = signs.

Does it work with accents, other languages and emoji?

Yes. With Encode as UTF-8 text ticked, accents, other scripts and emoji are encoded correctly. If you untick it, only characters from the first 256 (Latin-1) can be encoded, and anything else shows a message.

What does Make it URL-safe do?

It replaces + with - and / with _, which is the form used in web addresses and tokens.

Why does the result end with = signs?

They are padding, so the length fits the Base64 rules. Tick Remove the = signs at the end if you do not want them.

Why is the Base64 longer than my text?

Base64 uses four characters for every three bytes of text, so the result is about a third longer.

How do I turn Base64 back into text?

Use the Base64 Decoder tool.

Is Base64 encryption, and is my text private?

Base64 is not encryption, so it gives no protection. The tool is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Conversion Tools

Last updated: 16 November 2026