
Base64 Encode
Encode text or a file up to 8 MB into Base64, or decode Base64 text back into text.
Paste text to encode or decode it. A dropped file is encoded. Files stop at 8 MB.
- 1Paste text or drop a file.
- 2Press Encode or Decode.
- 3Copy the result.
About this tool
Turn text or a file up to 8 MB into Base64, or decode Base64 text back into text. Paste the value or drop the file, then copy the result.
- This is encoding, not encryption
- A file larger than the cap is refused
- Handy for a data URL or a pasted token
Questions
- What is URL-safe?
- Plus and slash become minus and underscore, and padding is removed.
- Will decode of a bad string throw?
- You get an error in the page.
- Is there a file limit?
- Files stop at 8 MB so the tab does not stall. Text has no fixed limit.
Ratings
No ratings yet. The average shows after 3 ratings.
Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.
Related tools
JSON formatterPretty-print JSON with a two-space indent, and show the parse error when the text is invalid.
CSV and JSONConvert a CSV table to JSON, or a JSON table to CSV, keeping commas that sit inside quotes.
URL encode and decodeEncode text as a URL query value, or decode percent-escapes back into text.
JWT decoderRead the header, payload, and expiration time of a JSON Web Token.
UUID v4 GeneratorGenerate one version-4 UUID from the browser's random source.
Regex testerTest a JavaScript regular expression against sample text and list the matches.
Cron explainerExplain a five-field cron expression and list the next five run times on this device.
Unix timestampTurn a Unix timestamp into the local date and time.