Base64 Encode / Decode
Client-sidePopularFeaturedNewEncode UTF-8 text to Base64 or decode Base64 back to text — instantly in your browser.
Base64 Encode / Decode wandelt UTF-8-Text und Base64 vollständig in Ihrem Browser um. Daten werden nicht auf einen Server hochgeladen.
Examples
Key takeaways
- UTF-8 safe encode and decode
- Runs fully client-side
- Not encryption — reversible by design
- Intent pages cover text, JSON, HTML, and URL use cases
What is Base64?
Base64 encodes binary or text as ASCII using 64 characters so data can travel in text-only channels.
Anyone can decode Base64. Use it for transport and embedding (JSON, email, data URLs), not for secrecy. This tool uses UTF-8 for text round-trips.
Features
UTF-8 safe
Correctly encodes and decodes Unicode text, not just ASCII.
Encode & decode
One workspace for both directions with clear primary actions.
Data URL friendly
Paste a data:...;base64,... value and decode the payload.
Copy & download
Move results into tickets, configs, or editors in one click.
How it works
Paste text or Base64
Use plain text for Encode, or a Base64 string for Decode.
Choose Encode or Decode
Encode produces Base64. Decode restores UTF-8 text.
Copy the result
Copy or download the output for use in code or payloads.
Example walkthroughs
Hello World
Encode produces SGVsbG8sIFdvcmxkIQ==.
Hello, World!
Unicode
UTF-8 bytes are Base64-encoded without mojibake.
café ☕
Use cases
Embed secrets in configs
Encode short tokens or keys for YAML/JSON configuration files.
Inspect data URLs
Decode Base64 segments from data URLs or API responses.
Debug JWT segments
Pair with JWT Decode when you need raw Base64URL inspection.
Code snippets
UTF-8 Base64 in the browser
jsThis tool uses the same UTF-8 → Base64 approach for Unicode text.
const bytes = new TextEncoder().encode(text); const b64 = btoa(String.fromCharCode(...bytes));
Common errors
Invalid character in decode
Cause: The string includes spaces, newlines, or non-Base64 characters.
Fix: Strip whitespace or paste a clean Base64 / data-URL payload.
Mojibake after decode
Cause: The original bytes were not UTF-8 text (or were Latin-1 treated as UTF-8).
Fix: Confirm the source encoding; this decoder emits UTF-8 text.
About Base64 Encode / Decode
Base64 Encode / Decode wandelt zwischen klarem UTF-8-Text und Base64 um, damit Sie binärsichere Payloads in JSON, APIs, E-Mails und Data-URLs einbetten können. Nutzen Sie es, wenn ein Kanal nur ASCII akzeptiert oder Roh-Binärdaten und Unicode verwürfelt.
Base64 ist Kodierung, keine Verschlüsselung — jeder kann das Ergebnis dekodieren. Bevorzugen Sie es für Transport und Einbettung, nicht für Geheimhaltung. Dieser Workspace nutzt UTF-8 für Text-Roundtrips und kann data:...;base64,...-Payloads dekodieren, wenn Sie eine vollständige Data-URL einfügen.
Kodierung und Dekodierung laufen vollständig im Browser. Entwürfe, für den Transport verpackte Tokens und interne IDs brauchen keinen Remote-Encoder. Intent-Seiten decken Text-, JSON-, HTML- und URL-Workflows ab, wenn die Suchintention spezifischer ist als das allgemeine Tool.
Best Practice: dekodieren und prüfen, bevor Sie opaken Feldern vertrauen. Für Query-Parameter, die lesbare URLs bleiben müssen, nutzen Sie URL Encode statt Base64 eines ganzen Links. Zur JWT-Inspektion dekodieren Sie das Token mit JWT Decode, statt das mittlere Segment allein als gewöhnlichen Base64-Text zu behandeln.
Frequently asked questions
Ist Base64 Verschlüsselung?
Nein. Base64 ist Kodierung für den Transport, keine Verschlüsselung. Jeder kann es dekodieren.
Werden Binärdateien unterstützt?
Dieses Tool zielt auf Text. Fügen Sie Text oder Base64-Text ein; große Binär-Uploads sind nicht der Fokus.
Werden meine Daten hochgeladen?
Nein. Kodierung und Dekodierung laufen vollständig in Ihrem Browser auf dieser Seite.
Kann ich eine vollständige Data-URL einfügen?
Ja. Wenn Sie einen data:...;base64,...-Wert einfügen, kann das Tool die Base64-Nutzlast dekodieren.
Related tools
URL Encode / Decode
Percent-encode text for URLs or decode encoded query strings — private and instant.
HTML Escape
Escape and unescape HTML entities in your browser — private encode/decode, no upload.
JWT Decode
Decode JWT header and payload in your browser — inspect claims without uploading tokens.
UUID Generator
Generate UUID v4 identifiers in bulk — uppercase and hyphenless options, fully client-side.
Hash Generator
Generate SHA-1 / SHA-256 / SHA-384 / SHA-512 digests of text with Web Crypto — fully client-side.
Base64 Encode Text
Encode plain text notes, messages, and Unicode strings to Base64 in your browser — private and instant.
More in Encoding
Base64 Encode HTML
Encode HTML fragments and markup to Base64 for data URLs, emails, and embeds — decode back in your browser.
Base64 Encode JSON
Encode JSON payloads to Base64 for APIs, JWTs, and transport — decode back to UTF-8 JSON in your browser.
Base64 Encode URL
Encode URLs and query strings to Base64 for opaque links and redirects — distinct from percent-encoding.
Popular tools
JSON Formatter
Format, beautify, and minify JSON in your browser. Free, private, and instant — no upload to a server.
JSON Validator
Validate JSON instantly in your browser. See type, size, and node counts — or exact parse errors with line and column.
JSON Viewer
Explore JSON as an interactive tree with paths, types, and expandable nodes — all processed locally in your browser.
Regex Tester
Test JavaScript regular expressions against sample text — matches and groups, private in your browser.
Newest tools
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.
Word Counter
Count words, characters, sentences, and paragraphs with reading time — live and private.
Text Diff
Compare two texts line by line — see added and removed lines with a unified-style diff.
Slug Generator
Turn titles into clean, SEO-friendly URL slugs — lowercase, hyphenated, accents stripped.
Explore more
Guides & articles
How to decode a JWT safely (without trusting claims)
Inspect JWT header and payload in your browser. Learn why decoding is not verification, and which claims matter when debugging auth.
Base64 for developers: text, JSON, URLs, and what it is not
Learn when to Base64-encode text or JSON, how that differs from URL percent-encoding, and why Base64 is not encryption.
Keyboard shortcuts
Common keyboard shortcuts for Toolverse by RS workspaces — format, copy, reset, and global search.
Privacy model (client-side tools)
How Toolverse by RS handles data: browser-first processing, what we do not upload, and how that claim maps to product behavior.
How tools work on this site
Architecture overview for Toolverse by RS: registry-driven pages, lazy panels, SEO content, and client processors.
Base64 encoding on the RS Roshi blog
Encoding tutorials and edge cases for base64 encoding.
Privacy model
Why encoding tools process data only in your browser.