Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings online. Support for UTF-8 text, URL-safe Base64, and MIME line wrapping.

100% PrivateInstantAny Device

Options

How to Encode & Decode Base64

Convert text to and from Base64 encoding.

1

Enter Text

Paste text or Base64 string.

2

Choose Mode

Select encode or decode.

3

Click Convert

Convert instantly.

4

Copy Result

Copy the output.

Why Use Our Base64 Tool?

Encode and decode Base64 for development.

Instant Conversion

Encode or decode in one click.

100% Private

No data leaves your browser.

Both Directions

Encode and decode.

Any Device

Works everywhere.

Easy Export

Copy output.

No Sign-Up

No account needed.

Common Use Cases

See how Base64 encoding is used.

Encode Text

Input
Hello World
Output
SGVsbG8gV29ybGQ=

Decode String

Input
SGVsbG8gV29ybGQ=
Output
Hello World

API Auth

Input
user:password
Output
dXNlcjpwYXNzd29yZA==

Data URIs

Input
image/png data
Output
data:image/png;base64,...

Frequently Asked Questions

Base64 encodes binary data into a set of 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It's commonly used to embed binary data in text-based formats like JSON, XML, emails, and data URIs.
This tool uses a UTF-8 aware encoding approach: text is first encoded with encodeURIComponent, then processed with unescape, and finally Base64 encoded with btoa. This ensures non-ASCII characters (emoji, accented letters, CJK) are handled correctly.
Standard Base64 uses + and / which conflict with URL syntax. URL-safe Base64 replaces + with - and / with _, and optionally removes padding (=). This variant is used in JWTs, data URIs, and URL parameters.
MIME-compliant Base64 wraps output at 76 characters per line, as specified in RFC 2045. This is used in email attachments and certain legacy systems that require fixed-width line breaks.
Yes. All encoding and decoding happens locally in your browser — no data is sent to any server.

Explore More Free Tools

Discover more free online tools built by CoderDesign — all instant, private, and no sign-up required.

Ready to Work Together?

Need a custom tool or web application? Let's discuss your project.