Toolspy
Privacy-First • No Data Collection

Base64 Encoder/Decoder

Encode and decode text to/from Base64 format. Perfect for data transmission, storage, and embedding text in various applications.

Mode Selection
Input Text
Enter the text you want to encode to Base64
Enter the text you want to encode to Base64
Characters: 0Bytes: 0
Output Base64
Base64 encoded result
Base64 encoded result
Characters: 0Bytes: 0
About Base64 Encoding
What is Base64?
Binary-to-text encoding scheme that represents binary data in ASCII
Common Uses
Email attachments, data URLs, API tokens, configuration files
URL-Safe
Replaces + with -, / with _, and removes padding for URLs
Size Increase
Base64 encoded data is approximately 33% larger than original

Base64 Encoder / Decoder

A fast online Base64 encoder and Base64 decoder. Convert text to Base64, decode Base64 to text, with full UTF-8 and URL-safe support — in your browser, no signup.

Use this Base64 encoder / decoder to convert text to Base64 or decode Base64 back to text. Handles UTF-8 (so emoji and international characters round-trip cleanly), URL-safe variants, and MIME line wrapping for email contexts.

Ideal for debugging API headers, inspecting JWT payloads, encoding strings for JSON transport, and preparing tokens for URLs. Paste any length — short phrase or long payload — and copy the result with one click.

Base64 encoder / decoder — paste text or Base64, toggle encode / decode, copy result
Getting started

How to encode or decode Base64

Three steps from input to copied result.

1. Pick mode

Switch between Encode and Decode with a single tab.

2. Paste input

Drop text or a Base64 string into the input box.

3. Copy output

One-click copy. URL-safe and line-wrapping toggles available.

Examples

Encoding examples

A quick look at how input → Base64 maps.

TypeInputBase64
Plain textHello, world!SGVsbG8sIHdvcmxkIQ==
Emoji / unicodeNamaste 🙏TmFtYXN0ZSDwn5mP
JSON payload{"id":42,"ok":true}eyJpZCI6NDIsIm9rIjp0cnVlfQ==
Variants

Standard vs URL-safe Base64

Pick the variant that matches your destination.

Standard Base64 uses the alphabet A-Z a-z 0-9 + / and pads to multiples of 4 with =.

URL-safe Base64 replaces + with - and / with _, and often drops padding. Use it in URLs, cookies, filenames, and any place where + / could be mis-interpreted.

When it helps

Typical reasons to use Base64

Debug an API token or header

JWTs, auth headers, and webhook payloads often ship as Base64. Decode to inspect the contents.

Encode binary for transport

Text-only channels (JSON, query strings, env vars) need Base64 to carry raw bytes.

Prepare data URIs

Convert small text blobs to data URIs that embed directly in HTML or CSS.

Inspect URL-safe tokens

Reset-password links and invites often include URL-safe Base64 payloads.

Heads up

Common pitfalls

Confusing Base64 with encryption

Base64 is an encoding, not a cipher. Anyone with the string can decode it. Don’t use it to “hide” sensitive data.

Forgetting UTF-8

Naive Base64 on unicode strings can mangle characters. This tool handles UTF-8, but some libraries don’t — pair with a proper encoder on the other side.

Copying strings with line breaks

MIME-wrapped Base64 has line breaks every 76 chars. Most decoders handle it, but some strict parsers fail. Toggle wrapping off when pasting into code.

URL-safe vs standard

Standard Base64 uses + and /, URL-safe swaps them for - and _. Mismatched encoders / decoders will produce gibberish.

Overview

What this tool supports

Feature checklist
A factual summary of what the Base64 encoder / decoder does.
FeatureSupportedNotes
Encode text to Base64
Yes
UTF-8 safe — handles emoji and international characters.
Decode Base64 to text
Yes
Accepts standard and URL-safe variants.
URL-safe Base64
Yes
Swap + / for - _ and drop padding when needed.
Line wrapping control
Yes
Optional 76-column wrap for email / MIME outputs.
Copy to clipboard
Yes
One click to copy the result.
Large input support
Yes
Works for long payloads; runs entirely in your browser.
Account required
No
No signup, no install.

Frequently Asked Questions

Is the Base64 encoder / decoder free to use?
Does it handle unicode and emoji?
What is URL-safe Base64?
Is Base64 encryption?
Can I encode very long strings?
Does the tool upload my text to a server?
Community

User reviews

No reviews yet. If you used the tool, you can share feedback on our feedback page.

Ready to encode or decode?

Paste any text or Base64 string, flip the mode, and copy the result in one click.