Base64 Encoder & Decoder (Text and Files)
Encode text (including emoji and any language) to Base64 as UTF-8 and decode it back. Supports URL-safe Base64, optional padding, files and data URLs.
- Runs in your browser (no upload)
Result
Original data
19 bytes
Base64 length
28 characters
How to use
- Choose Text or File, then Encode or Decode.
- Type text or choose a file. Pick the alphabet (standard or URL-safe), padding and line breaks.
- Copy or download the result. If decoded data is not text, its type is detected so you can save it as a file.
FAQ
Are non-English characters and emoji handled correctly?
Yes. Text is converted as UTF-8 bytes, so Japanese, Chinese, Vietnamese and emoji round-trip exactly.
What happens with invalid Base64?
Invalid characters, a truncated length and wrong padding (=) are detected and shown with the line, column and exact spot. The page never crashes.
What is URL-safe Base64?
It is base64url from RFC 4648: - and _ replace + and / so the result can be used in URLs and file names. Decoding accepts both alphabets automatically.
Notes & limitations
- What you enter is processed only on this page and is not sent to YUCTS servers.
- Text up to 10 MB and files up to 10 MB. Long results are previewed, but copy and download always include everything.
- Text is treated as UTF-8. Bytes in other encodings such as Shift_JIS should be downloaded as a file.
- File type detection uses the first bytes only and is a best guess.
Data sources
- RFC 4648: The Base16, Base32, and Base64 Data Encodings(opens in a new tab) — Checked on: 2026-10-31
Related tools
- JSON Formatter & ValidatorValidate JSON and see the exact line and column of any syntax error. Pretty-print with 2 or 4 spaces or tabs, minify, sort keys, then copy or download.
- CSV ⇄ JSON ConverterConvert CSV or TSV to JSON and JSON back to CSV or TSV. Handles quoted fields, line breaks in cells, UTF-8 BOM, delimiter detection and Shift_JIS, and lets you pick, reorder and rename columns.
- YAML ⇄ JSON ConverterConvert YAML to JSON and JSON to YAML safely: custom or executable tags are never loaded, alias expansion is limited, and errors show the line and column.
- URL Encoder & Decoder (Percent-Encoding)Percent-encode or decode URLs and query strings in any language with encodeURIComponent, encodeURI or form encoding (+). Broken % sequences show the exact error position.
- Regex Tester (JavaScript)Test JavaScript regular expressions with highlighted matches, numbered and named groups and a replace preview. Patterns that run too long (ReDoS) are stopped automatically.
- Unix Timestamp ConverterConvert Unix timestamps to dates and dates to timestamps. Seconds, milliseconds, microseconds or nanoseconds, ISO 8601 with IANA time zones, values past 2038 and negative values before 1970.