Base64 Decode & Encode
Decode Base64 back to readable text or encode text to Base64, with correct UTF-8 handling for accented letters, CJK characters and emoji. Tick URL-safe to use the - and _ alphabet without padding, and use Swap to flip the result back into the input. You can also pick an image file and get a Base64 Data URI to embed in HTML or CSS. All encoding and decoding happens in your browser, and nothing is uploaded.
Image → Base64 Data URI
Pick an image to get a Data URI you can embed directly in HTML or CSS.
How to use the Base64 Encoder / Decoder
- Click Encode or Decode, and tick URL-safe if you need the URL-safe alphabet.
- Paste text or a Base64 string into the Input box. The Result updates as you type.
- Click Copy to copy the result, or ↑↓ Swap to move it back into the input and reverse the direction.
- To convert an image, choose a file under Image → Base64 Data URI and copy the generated string from the box below.
Frequently asked questions
- Click Decode and paste the string into the Input box. The decoded text appears in the Result box straight away. Both standard and URL-safe Base64 are accepted.
- Yes. Text is encoded as UTF-8 before Base64, so accented letters, Chinese characters and emoji round-trip correctly.
- It replaces + and / with - and _ and drops the trailing = padding, so the result can be used in URLs and file names.
- A Data URI can go straight into an img src or a CSS background, saving a request for small icons. Avoid it for large images: Base64 makes data about a third larger.
- No. Encoding, decoding and image conversion all run locally in your browser.
Other tools
{ }
JSON Formatter & Validator
Paste JSON to pretty-print, minify or validate it, right in your browser.
%
URL Encoder / Decoder
Percent-encode or decode URLs and break query strings into parameters.
⇄
CSV ↔ JSON Converter
Convert CSV to JSON and back, with header rows, quotes and custom delimiters.
🕑
Unix Timestamp Converter
Convert Unix timestamps to dates and back, in seconds or milliseconds.
🎨
Color Converter & Contrast Checker
Convert HEX, RGB and HSL, and check WCAG contrast with pass/fail labels.
🔑
UUID & Password Generator
Generate UUID v4s and strong passwords in bulk with crypto-grade randomness.
#️⃣
Hash Generator (MD5 / SHA)
Compute MD5, SHA-1, SHA-256 and SHA-512 hashes instantly, without uploading.
▦
QR Code Generator
Turn a URL or text into a QR code, adjust size and error correction, download PNG.
#
LLM Token Counter
See characters, words, lines and an approximate token count for your text.
Aa
Text Case Converter
Switch case or convert to camelCase, snake_case, kebab-case and more.
.*
Regex Tester
Test regular expressions live, with highlighted matches and capture groups.
🪪
JWT Decoder
Decode a JWT header and payload and see when it was issued and expires.
M↓
Markdown Preview
Write Markdown and see a live preview, then copy the HTML.
±
Text Diff Checker
Compare two texts and highlight additions and deletions by line or word.
Looking for more AI and software tools? Browse the yunodb.com tools directory ↗.