Base64 Encode
Paste any text to encode it to Base64 instantly. Encoding is UTF-8 safe, so emoji and accented characters work, and you can switch to URL-safe output. Everything runs in your browser.
How to encode text to Base64
- Paste or type the text you want to encode.
- Tick URL-safe if you need the result for a URL, filename or JWT.
- Copy the Base64 output or download it as a text file.
Examples
Encode a simple string
hello
aGVsbG8=
URL-safe output
>>>?
Pj4-Pw
Frequently asked questions
What is Base64?
Base64 is a way to represent binary or text data using 64 printable ASCII characters. It is used to embed data in JSON, data URLs, email and HTML where raw bytes are not safe.
Is Base64 encryption?
No. Base64 is encoding, not encryption. Anyone can decode it back to the original text, so never use it to protect passwords or secrets.
What is URL-safe Base64?
URL-safe Base64 (base64url) replaces the + and / characters with - and _ and removes the = padding, so the result is safe to drop into URLs, filenames and JWT segments.
Does it handle emoji and accented characters?
Yes. Text is encoded as UTF-8 first, so emoji, accents and other multi-byte characters encode correctly and decode back to the exact original.
Is my text private?
Yes. Encoding happens entirely in your browser, so your text is never uploaded to a server.
How do I decode it back?
Use a Base64 decoder to reverse the process. The plain output here is standard Base64 that any decoder accepts.
Related tools
Base64 Decode
Decode Base64 to plain text online. Paste a Base64 or base64url string and get instant UTF-8 output. Free, fast and runs in your browser.
URL Encoder
URL encode text online with percent-encoding. Escape spaces and reserved characters for a query value, or encode a full URL. Free and private.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.
Base58 Encoder
Encode and decode Base58 online with the Bitcoin alphabet. Convert text to Base58 or back, UTF-8 safe, no confusing 0 O I l. Runs in your browser.
Basic Auth Generator
Generate an HTTP Basic Authorization header from a username and password. Get the base64 value, header line and ready curl commands. Runs in your browser.