Code drawer

Base64 & URL encoder

Handle common transport encodings with transparent UTF-8 behavior.

Privacy built inYour work stays with you

Output

Your result will appear here.

Your work stays private in your browser while you use this tool.

In short

What does base64 & url encoder do?

Encode or decode UTF-8 text as Base64, unpadded Base64URL, or percent-encoded URL-component text. A completed result can be moved back into the input for a round-trip check.

Input
Text or an encoded value.
Result
Base64 or URL-encoded/decoded text.
Price
Free
Account
Not required
A quick, useful guide

How to use base64 & url encoder

01

Add your input

Text or an encoded value.

02

Choose your settings

Handle common transport encodings with transparent UTF-8 behavior.

03

Save or copy

Base64 or URL-encoded/decoded text.

A practical tip

Encoding is not encryption; never treat Base64 as protection for a secret.

Practical uses

When to use base64 & url encoder

Inspect the UTF-8 Base64 representation of a short text payload.

Decode a Base64URL segment while debugging a token or web protocol.

Percent-encode a user-supplied value before placing it in one URL query component.

Worked example

A concrete base64 & url encoder example

Input
café
Settings
Base64 encode
Result
Y2Fmw6k=, which decodes back to the original four-character UTF-8 text.
What to expect

How it works

TextEncoder and TextDecoder perform strict UTF-8 conversion around the browser's binary Base64 functions. Base64URL replaces + and / with - and _, removes padding when encoding, and restores padding when decoding. URL mode delegates to encodeURIComponent() and decodeURIComponent().

Know before using

Limits and edge cases

  • Encoding does not encrypt, authenticate, compress, or hide a value. Anyone who recognizes the encoding can reverse it.
  • Decode output must be valid UTF-8 text; arbitrary binary Base64 may be rejected. URL mode encodes one component rather than constructing or validating a complete URL.
References

Standards and sources

Common questions

Base64 & URL encoder FAQ

Is base64 & url encoder free to use?

Yes. Base64 & URL encoder is free to use.

Does base64 & url encoder keep my work private?

Yes. Your work stays private while you use the tool — nothing you enter is uploaded.

What is different about Base64URL output?

It uses - and _ instead of + and / and this tool omits trailing = padding. Those changes make the alphabet more convenient inside URL and filename contexts.

Can I use Base64 to protect a password or secret?

No. Base64 is a reversible representation, not encryption or hashing. Use an appropriate security mechanism for secrets.