Convert JSON to PHP serialize() format with correct byte lengths, optionally objects as stdClass. Free, in your browser.
Converts JSON to PHP serialize() format with correct byte lengths (UTF-8). Objects optionally as stdClass; the output works with unserialize().
JSON errors are explained and fixed.
Associative arrays (default), or stdClass like json_decode() without true.
Straight into a database or PHP code.
s:19:"Žluťoučký kůň" — accented characters take more bytes than characters; lengths are computed correctly.
Keys like "5" become i:5, exactly as PHP does.
JSON from PHP unserialize converts back to the same string.
serialize() lengths are in bytes; when the database changes charset (latin1 ↔ utf8) they stop matching. PHP unserialize with “fix string lengths” repairs it.
Yes. No sign-up, no ads and no size limit — the only limit is your computer.
No. Everything runs in your browser and the data you paste never leaves it — fine even for data with tokens or personal information.