Skip to tool
Data & formats

Base64 Text

Encode and decode UTF-8 text with standard and URL-safe Base64 variants.

Input0 characters
Result0 characters
Ready

Prefer a native workflow?

Keep Base64 Text one shortcut away.

DevSexy for Mac puts the same private workflow in a focused desktop app, with global shortcuts and no browser tab to manage.

Global shortcutOffline-readyLocal processing
Try the Mac app free

This browser tool remains free.

Characters are not bytes · bytes are not symbols

Start with the octets.

Base64 never sees “emoji” or “CJK.” It sees bytes, groups their bits by six, and maps those values to printable ASCII. Text interpretation happens on either side of that encoding core.

01

Characters

A · 码 · 🔧

What a person reads

02

UTF-8 bytes

41 · E7 A0 81 · F0 9F 94 A7

What enters Base64

03

6-bit groups

010000 011110 011110 …

Four groups per 24 input bits

04

Symbols

Qeegg…

Printable transport text

Two RFC alphabets

Only two symbols change. The protocol still changes.

Shared 62 symbols · A–Z · a–z · 0–9
Index 62+-

Plus can be special in URLs/forms

Index 63/_

Slash is a path separator

Padding=Often omitted

The surrounding protocol decides

NameBase64base64url

Do not call them interchangeable without conversion

Padding workbench

The final quantum determines the equals signs.

3 input bytes24 data bits4 symbolsno padding
2 input bytes16 data bits + zero pad bits3 symbols + =one pad
1 input byte8 data bits + zero pad bits2 symbols + ==two pads

Canonical encoders set unused pad bits to zero. Missing padding may be allowed by a protocol, but impossible length remainder 1 is still invalid.

Decode triage

Successful Base64 decoding only gives bytes.

UTF-8 text

48 65 6C 6C 6F

Decode with a fatal UTF-8 decoder

Binary data

00 FF A3 10 …

Show bytes; never invent replacement glyphs

Known signature

89 50 4E 47 …

Candidate PNG; validate the real format

Data URL

data:image/png;base64,…

Prefix supplies media context; it is not encoded payload

Strictness incident strip

Reject ambiguity with a specific reason.

# in input

Non-alphabet character

QUI===

Too much or misplaced padding

QU JD

Whitespace in strict mode

a+b/c

Standard alphabet inside Base64URL mode

A

Impossible length · remainder 1

non-zero pad bits

Decodable but non-canonical

BASE64 IS NOT ENCRYPTION

Representation supplies neither secrecy nor integrity.

Not encryption

Anyone can decode the bytes.

Not integrity

Data can be modified and re-encoded.

4 : 3 transport cost

Base64 adds roughly one output byte per three input bytes before wrappers.

Run a reproducible example

Follow UTF-8 text into Base64, then see how invalid UTF-8 bytes are reported without replacement glyphs.

Using an example replaces the current input, reference input, operation, and options. Public demonstration data only.

Encode two Chinese characters

Choose Encode, UTF-8, and the standard Base64 alphabet.

Input

你好

The six UTF-8 bytes become 5L2g5aW9; this representation supplies no encryption.

5L2g5aW9

Decode bytes that are not UTF-8 text

Decode /wA= with required padding and strict whitespace handling.

Input

/wA=

The two bytes FF 00 appear as a hexadecimal preview rather than invented text.

Decoded 2 bytes
ff 00

Continue with a related task

JWT Debugger

Decode, verify, and sign JSON Web Tokens while keeping keys in the browser.

Text Escapes & Unicode Inspector

Inspect code points, normalization, graphemes, and language escape sequences.

Hash, HMAC & Checksum Studio

Calculate and verify digests for text and files with streaming workers.

Repeat the task in DevSexy for Mac

Use the native app for repeated offline work and direct Option shortcuts.

Direct answer

What is Base64 Text?

Encode UTF-8 text or strictly decode Base64 and Base64URL online, with clear checks for alphabet, padding, canonical form, and binary-versus-text boundaries.

What can it do?

  • Auto
  • Encode
  • Decode

How to use Base64 Text

  1. 01

    Prepare the input

    Decide whether the source is text to encode or encoded bytes to decode.

  2. 02

    Choose the operation

    Select the text encoding, alphabet, padding, and whitespace policy explicitly.

  3. 03

    Review the evidence

    If decoding yields binary, inspect the byte preview instead of assuming it is readable text.

Frequently asked questions

Why do I get a byte preview instead of text?
Base64 decoding produces bytes. If the selected text decoder cannot read them, the tool reports the bytes instead of silently inserting replacement characters.
Does Base64 protect a token or password?
No. Base64 is reversible representation. Anyone with the encoded value can decode the bytes; secrecy and integrity require separate mechanisms.
Can Base64URL be pasted into standard mode?
Choose the matching alphabet explicitly. Base64URL uses - and _ instead of + and /, and its surrounding protocol determines whether padding may be omitted.