Skip to content
All tools

Base64 Studio

Available

Encode and decode UTF-8 text locally with strict standard Base64 and Base64URL validation.

Runs locally. Your text never leaves this browser.

Browser-local codec

Encoding, decoding and validation happen entirely in this browser. No payload is sent to a Devary server.

Input

Enter UTF-8 text to encode.

Output

Encoded text using the selected alphabet and padding policy.

Inspection

Input characters
0
Input UTF-8 bytes
0
Output characters
0
Variant
Standard Base64

Security boundary

Base64 is reversible encoding. Never rely on it to protect credentials, tokens or confidential data.

UTF-8, not Latin-1 assumptions

Text is converted with Web Platform UTF-8 APIs, so accents, CJK characters and emoji round-trip correctly.

Encoding is not encryption

Base64 only changes how bytes are represented. It does not hide, encrypt or protect secrets.

Practical guide

Encode and decode Base64 with reliable examples

Base64 Studio converts UTF-8 text to Base64 or Base64URL locally. Follow three reproducible workflows, understand strict validation, and learn where encoding differs from encryption.

From text to a checked result

  1. Choose Encode or Decode

    Use Encode for plain text and Decode for an encoded string. Select Standard Base64 or Base64URL to match the system you are integrating.

  2. Set the alphabet and padding

    Standard uses + and /; Base64URL uses - and _. During encoding, decide whether to retain the final = padding. Decoding accepts missing trailing padding.

  3. Inspect the output before copying

    Run the operation and check the result and byte counts. Wrong alphabets, impossible lengths, malformed padding and non-UTF-8 decoded bytes produce an error.

Reproducible examples

Encode Unicode text

Choose Encode, Standard Base64 and Include padding. Unicode text becomes UTF-8 bytes before being represented in Base64.

Workspace settings

Encode · Standard Base64 · Include padding

Input

Café 🚀

Expected output

Q2Fmw6kg8J+agA==

Create a URL-safe value

Choose Encode and Base64URL, then omit padding. Unlike standard Base64, the resulting alphabet avoids + and /.

Workspace settings

Encode · Base64URL · Omit padding

Input

ÿÿ

Expected output

w7_Dvw

Decode a value with missing padding

Choose Decode and Standard Base64. The codec restores valid omitted padding; it does not ignore embedded spaces or malformed input.

Workspace settings

Decode · Standard Base64

Input

aGVsbG8

Expected output

hello

Important limitations

Encoding is not encryption

Anyone can decode a Base64 value. Do not use it to protect passwords, access tokens or sensitive data.

Text, not arbitrary binary files

This tool decodes bytes as UTF-8 text. Encoded binary data that is not valid UTF-8 cannot be displayed as decoded text here.

Strict alphabet validation

The standard and URL-safe alphabets are separate. Embedded whitespace and characters from the other alphabet are rejected.

Padding follows length rules

Missing trailing = is normalized on decoding; extra, misplaced or inconsistent = characters cause an error.

Frequently asked questions

Is Base64 a secure way to store a password?

No. Base64 is reversible encoding, not encryption or hashing. Use a suitable password-hashing scheme instead.

When should I choose Base64URL?

Choose Base64URL when a specification requires a URL-safe alphabet, for example for encoded segments of a JWT. It is not automatically a valid full URL.

Why does the decoder reject some Base64 strings?

The selected alphabet, padding and encoded length must be consistent, and the decoded bytes must be valid UTF-8. Whitespace is not silently discarded.