Base64 Encoder and Decoder

Turn text into Base64 — or Base64 back into text — instantly, with a URL-safe option and full emoji support. Free, private, no signup.

0 characters
0 characters

How to use the Base64 encoder

  1. Pick a direction. Encode turns your text into Base64; Decode turns Base64 back into text.
  2. Paste or type into the top box. The result updates live with every keystroke — no button to press.
  3. Copy the result. Use “Copy result” under the output box, or the top “Copy” button to copy your input.
  4. Need it for a URL? Tick the URL-safe option so the output uses hyphens and underscores instead of plus and slash.
  5. Going back and forth? The ⇅ Swap button puts the current result into the input and flips the direction in one click.

Frequently asked questions

What is Base64 encoding?

Base64 turns any text into a string made only of the 64 safe characters A-Z, a-z, 0-9, plus, slash, and equals for padding. It is handy when a system only accepts plain ASCII, for example when embedding data in URLs, JSON, or email headers.

How do I encode text to Base64?

Choose the Encode mode above, paste or type your text, and the Base64 appears instantly in the output box. Click Copy result to put it on your clipboard.

How do I decode Base64 back to text?

Switch to the Decode mode, paste the Base64 string, and the original text appears below. If the string is not valid Base64 you will see a clear message explaining what to check.

What is the URL-safe variant?

Standard Base64 uses plus and slash, which have special meanings in URLs. The URL-safe variant swaps them for hyphen and underscore and drops the padding. Turn it on when the output is going into a link, a filename, or a token.

Why does text with emoji break other Base64 tools?

Many quick tools call the browser btoa function directly on the text, and btoa only understands single-byte characters. Emoji, Chinese characters, and accented letters get mangled. This tool first converts your text to UTF-8 bytes with TextEncoder, so every character survives the round trip.

Why do I see an invalid Base64 message?

The string probably contains a typo or a character outside the Base64 alphabet. This tool ignores line breaks, which are common in pasted output, but anything else outside A-Z, a-z, 0-9, plus, slash, and equals is rejected with an explanation.

Why is there no file-to-Base64 option?

This tool is deliberately text-only. Encoding a large file in the browser can use several times the file size in memory and freeze the page, so file conversion is out of scope. For files, use a desktop tool or a short script instead.

Is my data sent anywhere?

No. Everything happens in your browser with JavaScript only. Nothing you type is sent to a server, stored, or logged.

More from the codex

You’re here

Base64 Encoder

Encode and decode Base64 text, unicode-safe.

Live

Citation Generator

APA, MLA, Chicago, and Harvard citations from a URL, DOI, or ISBN.

Open tool →
Live

GPA Calculator

Semester and cumulative GPA with a target planner.

Open tool →
Live

Word Counter

Count words and estimate reading time instantly.

Open tool →
Live

Grade Calculator

“What do I need on my final?” — answered.

Open tool →
Live

Pomodoro Timer

Focus sprints and breaks, kept in rhythm.

Open tool →
Live

Random Student Picker

Fair, no-repeat classroom picker for teachers.

Open tool →
Live

Scientific Calculator

Trig, logs, powers, factorials — full keypad.

Open tool →
Live

Percentage Calculator

Percent of, percent change, increase/decrease.

Open tool →
Live

Unit Converter

Everyday conversions, instantly.

Open tool →
Live

Typing Speed Test

Measure your words per minute and accuracy.

Open tool →
Live

Student Budget Calculator

Track income and spending, stay on budget.

Open tool →
Live

Attendance Calculator

How many classes can you miss? Find out.

Open tool →
Live

Tip Calculator

Split the bill and tip the right amount.

Open tool →
Live

Password Generator

Strong random passwords and passphrases.

Open tool →
Live

Case Converter

UPPERCASE, lowercase, Title Case, camelCase & more.

Open tool →
Live

Countdown Timer

Count down to exams, graduation, and big days.

Open tool →
Live

Flashcard Maker

Study with smart flip cards and spaced repetition.

Open tool →
Live

Resume Builder

Build a clean, ATS-friendly resume.

Open tool →
Live

PDF Tools

Merge, split, and convert PDFs — 100% private.

Open tool →
Live

Timetable Maker

Build your weekly class schedule in minutes.

Open tool →
Live

Text-to-Speech Reader

Hear any text read aloud, free.

Open tool →
Live

Age Calculator

How old are you, exactly? Years, months, days.

Open tool →
Live

Date Calculator

Days between dates, plus date arithmetic.

Open tool →
Live

BMI Calculator

Body mass index with healthy-range guidance.

Open tool →
Live

Loan Calculator

Monthly payments, interest, amortization table.

Open tool →
Live

Compound Interest Calculator

Project savings growth with contributions.

Open tool →
Live

QR Code Generator

Free QR codes for URLs and text. PNG download.

Open tool →
Live

JSON Formatter

Validate, format, and minify JSON.

Open tool →
Live

Lorem Ipsum Generator

Placeholder text by paragraph or word.

Open tool →
Live

Periodic Table

Interactive table of all 118 elements.

Open tool →
Live

Time Zone Converter

Convert times across zones; plan meetings.

Open tool →
Live

Color Picker

Hex/RGB/HSL converter, palettes, contrast checker.

Open tool →
Live

Random Number Generator

Random numbers, dice, coin flip, shuffler.

Open tool →
Live

Stopwatch

Precision stopwatch with lap times.

Open tool →
Live

Fancy Text Generator

Bold, italic, script and 12 more unicode styles.

Open tool →
Live

URL Encoder / Decoder

Encode/decode URLs and parse query strings.

Open tool →
Live

Invoice Generator

Professional invoices with tax, discounts, print.

Open tool →
Live

Unix Timestamp Converter

Convert timestamps to dates and back.

Open tool →
Live

Metronome

Steady beats with tap tempo, 30-240 BPM.

Open tool →