Base64 Encode / Decode
Runs in browserConvert text or files to Base64 and back — UTF-8 safe.
Mode
Text input
Drop your file here, or click to browse
Or drop a file to encode as Base64
Output
Result will appear here.
- 1
Text is turned into bytes
Text is encoded as UTF-8 exactly as typed, including spaces and line breaks, so emoji and accents work. Files are read as raw bytes. Your file never leaves this tab, and nothing is sent to a server.
- 2
Encoded
Every 3 bytes become 4 Base64 characters. URL-safe mode uses - and _ instead of + and / and drops the = padding.
- 3
Decoded
Both standard and URL-safe Base64 are accepted, with or without padding or line breaks. If the bytes aren't valid UTF-8 text (an image, say), you're told, and you can download them as a file instead.
More in Developer Tools
See all 8Hash Generator
Compute SHA-1, SHA-256, SHA-384, and SHA-512 checksums for text and files, and verify a known hash.
JSON Formatter
Format, minify, and validate JSON with clear error messages.
JWT Decoder
Inspect JWT headers and payloads locally — no upload, no verification server.
JWT Secret Generator
Generate cryptographically secure JWT secret keys with adjustable bit strength.