PHP serialize / unserialize
Convert between PHP's serialize() format and JSON with a recursive-descent parser.
JSON
</>Use this tool programmaticallycurl · JavaScript · MCP
Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.
curl
curl https://api.b-e-a-d.com/tools/php-serialize/run \
-H "Content-Type: application/json" \
-d '{
"mode": "decode",
"input": "your input here"
}'JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/php-serialize/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"mode": "decode",
"input": "your input here"
}),
});
const data = await res.json();
console.log(data.result);MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
"mcpServers": {
"bead": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
}
}
}
# Then ask Claude to call:
mcp__bead__bead_php_serializeFull reference: developer docs · OpenAPI spec
Format primer
PHP's serialize() produces a compact, typed text representation: s:N:"…" for strings (length in bytes), i:N for ints, d:N for floats, b:0|1 for booleans, N for null, and a:N:{…} for arrays.
Limits
Object instances (O:) and references (r:) are intentionally unsupported — round-tripping them safely requires class definitions we don't have access to.
You might also like
- CSV ↔ JSON ConverterConvert CSV to JSON or JSON to CSV with quoted fields and configurable delimiters.
- JSON → Code ObjectRender a JSON sample as a literal in JS, TS, Python, PHP, Ruby, Go, Rust, and Java side by side.
- YAML ↔ JSON ConverterConvert YAML to JSON or JSON to YAML, with anchors and multi-document support.
- cURL ConverterParse a curl command and emit fetch, Node https, Python requests, Ruby Net::HTTP, Go net/http, PowerShell, HTTPie, and wget equivalents.