🔒 Files and text are processed locally in your browser. Nothing is uploaded.
Using an AI agent or a script? Call this tool as an API
AI agents and scripts can call this tool directly, to check their work or look something up, and get JSON back with the same answer this page gives. No key needed.
GET https://digitalgreenhouse.com.au/api/tools/base64?text=Hello%2C%20Sydney%21&mode=encode
text— string, required. Text to encode, or Base64 to decode.mode— string, one ofencode|decode, defaultencode. encode or decode.urlsafe— boolean, defaultfalse. Use the URL-safe alphabet (- and _, no padding).
The API answers from our server, and our code doesn’t store what you send. Fair-use limits apply. API guide · all endpoints (JSON) · OpenAPI
What is Base64?
Base64 is a way of writing any data — text, an image, a PDF — using only 64 plain characters (A–Z, a–z, 0–9, + and /). It’s how binary files get tucked safely inside things that only expect text, like email attachments, JSON payloads, or a CSS data: background image. It is encoding, not encryption — anyone can decode it, so never use it to hide secrets.
URL-safe Base64
The standard + and / characters have special meanings in URLs. URL-safe Base64 swaps them for - and _ and drops the = padding, so the value can travel in a link or filename. Tick “URL-safe” above to use it.
Why did my emoji or accented text break elsewhere?
Can I turn an image into a data-URI?
data: URI you can paste straight into HTML or CSS.