PHP serialize / unserialize
Convert between PHP's serialize() format and JSON with a recursive-descent parser.
JSON
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.