CODDY Tool

Base64 Encoder

Encode text to Base64, with URL-safe and wrapping options.

Convert text into Base64. Handles full Unicode correctly, offers URL-safe encoding for query strings and filenames, and can wrap output at a fixed line length.

Everything you enter stays in this browser tab. Nothing is sent to our servers, logged or stored.

This is one of the thingsEncoding Tooldoes — open it for everything else it supports.

Loading tool…

What Encoding Tool supports

Base64

  • Base64 encode
  • Base64 decode

URL

  • URL encode
  • URL decode

HTML

  • HTML entity encode
  • HTML entity decode

About Base64 Encoder

Base64 represents arbitrary binary data using 64 printable ASCII characters. Its purpose is transport: getting data safely through channels designed for text that would otherwise mangle raw bytes — email bodies, HTTP headers, JSON fields, URL parameters.

Unicode needs care, and this is where most implementations fail. Base64 encodes bytes, so text has to become bytes first. This uses UTF-8, so emoji and non-Latin scripts encode and decode without corruption, unlike naive tools built on the browser's older btoa function.

How to encode text to Base64

  1. Enter your text

    Type or paste anything, in any language.

  2. Choose the options

    URL-safe encoding for URLs and filenames; line wrapping for MIME formats.

  3. Copy the result

    Encoding happens as you type.

Frequently asked questions

Is Base64 encryption?

No. It is a reversible encoding with no key and no secret, and anyone can decode it instantly. Never use it to protect passwords, tokens or personal data — this misunderstanding causes real vulnerabilities.

When should I use URL-safe encoding?

Whenever the result appears in a URL, a filename or anywhere that treats + and / specially. URL-safe encoding replaces them with - and _, which are safe in all those contexts.

Does it handle emoji correctly?

Yes. Text is converted to UTF-8 bytes before encoding, so emoji, accented characters and non-Latin scripts survive a round trip exactly. Older tools built on raw btoa throw an error on this input.

Why is the output longer than my text?

Base64 turns every three bytes into four characters, so the result is roughly 33% larger plus padding. That overhead is inherent to the encoding and cannot be optimised away.

All Developer Tools

Base64 Encoder is free to use with no account, no watermark and no usage limits. Last updated 14 August 2026.