Home Work & Income Base64 Encode / Decode

Base64 Encode / Decode

Turn text into Base64 and back, safe for Unicode and emoji.

Advertisement

How it works

Base64 rewrites any data with 64 safe characters so it can travel through systems built for plain text: emails, JSON fields, data URLs. It is encoding, not encryption; anyone can decode it. This page handles Unicode correctly, encoding the UTF-8 bytes rather than mangling non-English text the way naive tools do.

Advertisement

Formula

Every 3 bytes become 4 characters from A-Z a-z 0-9 + and /, with = padding at the end.
Length grows by about a third.

Example

Example in plain words. hello world.

Encoded: aGVsbG8gd29ybGQ=.

The word cafe with an accented e encodes as Y2Fmw6k=, because the accent takes two UTF-8 bytes.

Decoding aGVsbG8gd29ybGQ= returns hello world.

Frequently asked questions

Is Base64 secure for secrets?

No. It is readable by anyone at a glance. Never treat it as protection for passwords or keys.

Why does the output end with =?

Padding. Input bytes do not always fill a group of three, and the equals signs mark the short group so the decoder can stop cleanly.

Advertisement

Related calculators

Salary Calculator

Convert a salary between hourly, weekly, every two weeks, monthly and yearly pay.

Time Card Calculator

Add up your clock-in and clock-out times for the week, take off breaks, and get total hours and pay.

Prorated Salary Calculator

Pay for part of a month, for example when you start or leave in the middle of it.

IP Subnet Calculator

Network address, broadcast address, subnet mask and usable host range for any IPv4 address and prefix length.