Base64 Encode / Decode
Encode plain text to Base64 or decode Base64 strings back to readable UTF-8 text. Supports multi-byte Unicode characters, emojis, and URL-safe formatting according to RFC 4648. All conversions execute locally in your browser.
Full UTF-8 Unicode and Binary Support
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation. It is ubiquitous in data URIs, HTTP Basic Auth, and email MIME attachments.
Legacy browser implementations using window.btoa fail on any character outside Latin-1. Castov Base64 uses the modern TextEncoder interface to ensure every Unicode symbol, emoji, and non-Latin character encodes cleanly.
RFC 4648 URL-Safe Mode for Web Tokens and Parameters
Standard Base64 contains plus (+) and slash (/) characters that require percent-encoding when placed inside URLs. URL-Safe Base64 replaces these characters with minus (-) and underscore (_).
This format is essential when working with JSON Web Tokens (JWT), OAuth2 authorization codes, and file storage identifiers.
How to use this tool
- Select either Encode or Decode mode depending on your desired operation.
- Paste your text or Base64 string into the input field.
- Optionally toggle URL-Safe to use RFC 4648 URL and filename safe characters (- and _).
- Click Copy to copy the converted result to your clipboard.
Examples
Base64 standard and URL-safe encoding examples.
Plain Text Encoding
Hello World
- Base64
- SGVsbG8gV29ybGQ=
- URL-Safe
- SGVsbG8gV29ybGQ
Unicode & Emojis
Castov 🚀
- Base64
- Q2FzdG92IPCfmYA=
- Decoded
- Castov 🚀
Frequently Asked Questions
Does this tool support emojis and international UTF-8 characters?
What is URL-Safe Base64 (RFC 4648)?
Is my data transmitted to any external server?
How does padding work in Base64?
Can I swap the input and output quickly?
Related tools
- JWT DecoderDecode and inspect JSON Web Tokens (JWT) header and payload locally.
- Hash GeneratorGenerate SHA-256, SHA-512, SHA-1, and MD5 hashes for text and files.
- JSON Formatter & ValidatorFormat, validate, minify, and sort JSON keys in your browser.
- UUID GeneratorGenerate cryptographically secure UUID v4 and v7 identifiers in bulk.