Base64 encoder & decoder
Encode and decode UTF-8 text or local binary files using standard or URL-safe Base64 directly in your browser.
Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.
Report a problem with this toolUnicode & binary file support
Full UTF-8 encoding: Uses native TextEncoder and TextDecoder rather than legacy byte-only tricks, so multi-byte Unicode scripts and emojis round-trip without corruption.
Standard and URL-safe modes: Produces standard (+, /) or URL-safe (-, _) Base64 strings, with optional = padding omission for tokens and query parameters.
Local file encoding & binary fallback: Files up to 10 MB can be encoded locally into Base64, and non-UTF-8 decoded payloads can be downloaded cleanly as binary .bin files.
Important security & privacy note
Encoding is not encryption: Base64 changes binary bytes into printable ASCII text. Anyone with the encoded output can reverse it immediately—never treat Base64 as secrecy or security.
Browser-local processing: All text and selected files remain on your device inside browser memory.
Frequently asked questions
- Why did decoding say "Decoded bytes are not valid UTF-8 text"?
- If a Base64 string encodes an image, compressed archive, or binary payload rather than plain text, it cannot be displayed cleanly as UTF-8 text. Use the "Download binary (.bin)" button shown on that message to save the raw bytes.
- When should I use URL-safe Base64?
- Standard Base64 uses + and / characters that have special meaning in URLs and file paths. URL-safe Base64 substitutes - and _ so strings pass through URLs safely without extra percent-encoding.
Related tools
Browse all toolsSecurity & generators
JWT decoder
Decode Base64URL JWT headers, claims, and expiration timestamps locally—with clear non-verification disclosure.
Developer tools
URL encoder & decoder
Safely encode and decode URL query components or full web addresses with form-space (+) handling.
Security & generators
Hash & checksum generator
Compute SHA-256, SHA-384, SHA-512, and legacy SHA-1 hashes for text or local files and verify checksums.