MP4 to WebM Converter
Make a smaller, royalty-free WebM for the web from any MP4.
Unserialize a PHP string into JSON — and back — with byte lengths handled and repairable.
Drop a file here, or click to choose one
Converted on your device — the file is never uploaded
The PHP Serialize to JSON Converter unserializes a PHP string into readable JSON and back again, counting string lengths in bytes as PHP does and repairing them when they no longer match.
WordPress options, Magento configuration, session files, queue payloads and countless legacy database columns store PHP serialized strings: a:3:{s:4:"name";s:3:"Ada";…}. They are unreadable by eye, and the moment one is edited or moved between character sets the byte lengths stop matching and PHP refuses to read it at all.
Paste a serialized string and read it as JSON: nested arrays, objects with their class names, booleans, floats, references and enum values. String lengths are counted in bytes, exactly as PHP does, so multibyte text is handled correctly — and when the lengths are wrong, the repair option re-reads each string to its real end and tells you how many it fixed. It works the other way too, turning JSON into a serialized string you can write back. Nothing is executed: unserialize() on untrusted data can trigger PHP magic methods, while reading it as text here cannot.
Data damaged by an edit or a charset change can be re-read, with a count of what was fixed.
Class names are kept, and private and protected property names are cleaned up.
Lengths are counted in UTF-8 bytes, so multibyte text round-trips correctly.
Edit the JSON and serialize it again, ready to write back.
Nothing is executed — unlike a real unserialize() on untrusted input.
Straight from a database column, a session file or a log.
The direction is detected; objects keep their class under __class.
Turn on repair when a string length no longer matches the data.
Edit the JSON and switch direction to get a serialized string again.
Because the byte length in s:N: no longer matches the string — usually after an edit, a search-and-replace, or a change of database character set. The repair option re-reads each string and reports how many were wrong.
Yes. An O:8:"stdClass" entry becomes a JSON object with a __class key, and private or protected property names, which PHP stores wrapped in null bytes, are cleaned up.
Yes. Nothing is executed and no PHP runs. Real unserialize() on hostile input is a known code-execution risk; reading it as text is not.
Yes. Paste JSON and it is serialized with correct UTF-8 byte lengths. Add a "__class" key to produce an object of that class rather than an associative array.
What people who use the PHP Serialize to JSON Converter think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the PHP Serialize to JSON Converter. It takes half a minute and no account.
Write the first reviewMake a smaller, royalty-free WebM for the web from any MP4.
A PHP array literal, var_export or print_r output turned into JSON — nothing executed.
TOML tables into clean YAML, with the strings YAML would misread quoted for you.
Apple property lists — XML or binary — read as JSON, and JSON written back as a plist.
Paste text, get a properly typeset PDF — page size, margins and numbering.
Turn a GPS track into a KML file you can open in Google Earth or Google Maps.
Turn a web page or rich text into BBCode a forum will accept.
A README or a set of notes as a properly laid out PDF, headings and all.