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.
How to use the Base64 encoder
- Pick a direction. Encode turns your text into Base64; Decode turns Base64 back into text.
- Paste or type into the top box. The result updates live with every keystroke — no button to press.
- Copy the result. Use “Copy result” under the output box, or the top “Copy” button to copy your input.
- Need it for a URL? Tick the URL-safe option so the output uses hyphens and underscores instead of plus and slash.
- 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
Base64 Encoder
Encode and decode Base64 text, unicode-safe.
Citation Generator
APA, MLA, Chicago, and Harvard citations from a URL, DOI, or ISBN.
Open tool → LiveGPA Calculator
Semester and cumulative GPA with a target planner.
Open tool → LiveWord Counter
Count words and estimate reading time instantly.
Open tool → LiveGrade Calculator
“What do I need on my final?” — answered.
Open tool → LivePomodoro Timer
Focus sprints and breaks, kept in rhythm.
Open tool → LiveRandom Student Picker
Fair, no-repeat classroom picker for teachers.
Open tool → LiveScientific Calculator
Trig, logs, powers, factorials — full keypad.
Open tool → LivePercentage Calculator
Percent of, percent change, increase/decrease.
Open tool → LiveUnit Converter
Everyday conversions, instantly.
Open tool → LiveTyping Speed Test
Measure your words per minute and accuracy.
Open tool → LiveStudent Budget Calculator
Track income and spending, stay on budget.
Open tool → LiveAttendance Calculator
How many classes can you miss? Find out.
Open tool → LiveTip Calculator
Split the bill and tip the right amount.
Open tool → LivePassword Generator
Strong random passwords and passphrases.
Open tool → LiveCase Converter
UPPERCASE, lowercase, Title Case, camelCase & more.
Open tool → LiveCountdown Timer
Count down to exams, graduation, and big days.
Open tool → LiveFlashcard Maker
Study with smart flip cards and spaced repetition.
Open tool → LiveResume Builder
Build a clean, ATS-friendly resume.
Open tool → LivePDF Tools
Merge, split, and convert PDFs — 100% private.
Open tool → LiveTimetable Maker
Build your weekly class schedule in minutes.
Open tool → LiveText-to-Speech Reader
Hear any text read aloud, free.
Open tool → LiveAge Calculator
How old are you, exactly? Years, months, days.
Open tool → LiveDate Calculator
Days between dates, plus date arithmetic.
Open tool → LiveBMI Calculator
Body mass index with healthy-range guidance.
Open tool → LiveLoan Calculator
Monthly payments, interest, amortization table.
Open tool → LiveCompound Interest Calculator
Project savings growth with contributions.
Open tool → LiveQR Code Generator
Free QR codes for URLs and text. PNG download.
Open tool → LiveJSON Formatter
Validate, format, and minify JSON.
Open tool → LiveLorem Ipsum Generator
Placeholder text by paragraph or word.
Open tool → LivePeriodic Table
Interactive table of all 118 elements.
Open tool → LiveTime Zone Converter
Convert times across zones; plan meetings.
Open tool → LiveColor Picker
Hex/RGB/HSL converter, palettes, contrast checker.
Open tool → LiveRandom Number Generator
Random numbers, dice, coin flip, shuffler.
Open tool → LiveStopwatch
Precision stopwatch with lap times.
Open tool → LiveFancy Text Generator
Bold, italic, script and 12 more unicode styles.
Open tool → LiveURL Encoder / Decoder
Encode/decode URLs and parse query strings.
Open tool → LiveInvoice Generator
Professional invoices with tax, discounts, print.
Open tool → LiveUnix Timestamp Converter
Convert timestamps to dates and back.
Open tool → LiveMetronome
Steady beats with tap tempo, 30-240 BPM.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you a trip to a search engine, consider supporting the indie dev behind it.