Skip to content
Fourohtwo

Find out how a string is encoded

agent402.tools/api/encoding-detect

Find out how a string is encoded. Tries hex, base64, base64url, base32, base58, URL (percent) encoding and quoted-printable, and inflates gzip or zlib data found inside (a decoded size cap guards against compression bombs). Each plausible decoding comes back ranked by confidence, from how much of it reads as text, with the decoded text (first 2,000 characters) or a hex preview of binary bytes.

BasePolygonArbitrumMonadAvalancheSei+5Answering
POSThttps://agent402.tools/api/encoding-detect

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/encoding-detect", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"SGVsbG8sIGFnZW50IQ=="}),
});
console.log(await res.json());

Example input

{
  "text": "SGVsbG8sIGFnZW50IQ=="
}