Tools › Base64 Encode & Decode
Base64 Encode & Decode
Encode text to Base64 or decode Base64 back to text online. Handles UTF-8, emoji and accents, supports URL-safe Base64 and runs entirely in your browser.
Use it from code
The same function is available as an API endpoint. Free tier: 100 calls per day without a key. Pro lifts the limit.
curl -X POST https://spincrus.uz/api/v1/tools/base64 \
-H "content-type: application/json" \
-H "x-api-key: YOUR_KEY" \
-d '{"text":"Hello, мир! 👋","mode":"encode","urlSafe":false}' FAQ
Does Base64 encrypt my data?
No. Base64 is an encoding, not encryption: anyone can decode it. Never use it to hide passwords or secrets.
What is URL-safe Base64?
It replaces "+" with "-" and "/" with "_" and drops the "=" padding so the string can be used in URLs, filenames and JWTs. The decoder accepts both variants automatically.
Why does decoding fail with "not valid UTF-8"?
The Base64 string is valid but represents binary data such as an image or archive, not text. This tool decodes text only.
Related tools
Cron Expression Explainer
Paste any cron expression and get a plain-English explanation instantly. Supports ranges, steps, lists and @daily/@hourly aliases.
Readability Checker
Free readability score calculator: Flesch Reading Ease, Flesch-Kincaid grade, Gunning Fog and ARI, plus word count and reading time.
JSON to CSV Converter
Convert JSON arrays to CSV online. Nested objects are flattened with dot notation, quotes are escaped correctly, works with large files.