Developer Utilities

Base64 Encoder

All tools

Type or paste text and copy its Base64 form, with accented letters and emoji encoded correctly.

How it works

Four simple steps

1

Type or paste text

Any UTF-8 text works, including emoji and non-Latin scripts.

2

Watch it encode

The Base64 output refreshes on every keystroke, no Run button needed.

3

Check the sizes

The status line compares input characters with Base64 characters.

4

Copy or download

Grab the single-line result or save it as encoded.txt.

Base64 Encoder

About Base64 Encoder

A webhook provider wants a JSON field holding a Base64-encoded note, and the note includes a customer's name with an umlaut. A quick btoa() in the console throws on that character. Base64 Encoder converts the text to UTF-8 first, so the encoded value decodes back to exactly what you typed.

Output updates on every keystroke, and the status line shows how many characters went in and how many Base64 characters came out, which makes the roughly one-third size increase easy to see. Text becomes UTF-8 bytes before encoding, so 'Hello, 世界! 🌍' round-trips cleanly. The result uses the standard alphabet with + and / and = padding, ready for JSON fields, Basic auth test strings or small data URLs. Sample, Copy, Download and Clear buttons handle the usual chores.

A common mistake is dropping standard Base64 into a URL or a token, where + and / cause trouble. Run the output through the URL-safe Base64 converter instead of swapping characters by hand. To encode an image or PDF rather than text, encode a file to Base64 reads the bytes directly. The post on formatting, minifying and Base64-encoding JSON privately walks through a typical API payload from start to finish.

Encoding uses the browser's own btoa function after the UTF-8 conversion, entirely inside the open page. What you type is not posted to a server.

Keyboard shortcut

Ctrl Enter - Run tool

Use cases

JSON binary fields

Wrap short UTF-8 or token strings for Base64-typed API fields.

Tiny data URLs

Encode small snippets when a data: URL is the pragmatic option.

Quick CLI substitute

Skip opening a shell for a one-off encode during debugging.

Instructions

How to use this tool

FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

The browser's btoa only accepts characters in the Latin-1 range, so an emoji or a Chinese character throws an error. This encoder converts the text to UTF-8 bytes first and then encodes those bytes, which is also what most server-side libraries do.

No. It is an encoding, not encryption. Anyone can decode it in a second, so never treat a Base64 value as a secret or as a way to obscure passwords and keys.

No, it is one unbroken line. If a format such as PEM or MIME expects lines of 64 or 76 characters, wrap the result with the Base64 Splitter.

View more FAQs

Related tools

View all

Cron Calendar

Explain cron expressions and preview the next run times in any timezone.

Open

CSV to SQL

Infer column types and generate CREATE TABLE + INSERT statements from CSV.

Open

SQL Query Builder

Build SELECT queries visually and reverse-parse SQL into a structure tree.

Open

Log Pattern Miner

Cluster log lines into templates, surface anomalies, and mask PII locally.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools