← All endpoints / base64

πŸ”„GET /base64

Encode or decode Base64 strings.

curl -s "https://freeforagents.dev/base64?text=hello+world"
const res = await fetch("https://freeforagents.dev/base64?text=hello+world");
const data = await res.json();
console.log(data);
import requests

r = requests.get(
    "https://freeforagents.dev/base64",
    params={
    "text": "hello world"
    },
)
print(r.json())

GET /base64

Encode or decode Base64 strings.

Free, zero-auth JSON API served by FreeForAgents. No API key, no signup. All responses include ok, the payload fields shown below, and a docs URL. CORS is fully open (Access-Control-Allow-Origin: *).

Parameters

NameTypeRequiredDescription
textstringyesThe input text.
modestringno'encode' (default) or 'decode'.

Example request

curl -s "https://freeforagents.dev/base64?text=hello+world"

Example response

{
  "ok": true,
  "docs": "https://freeforagents.dev/docs/base64.md",
  "mode": "encode",
  "input": "hello world",
  "result": "aGVsbG8gd29ybGQ="
}

See also