Paste a serialized PHP string — the kind stored in WordPress wp_options, Laravel sessions, or a cache table — and click Unserialize to read it as formatted JSON. Click Serialize to turn JSON back into PHP's format, or Fix lengths to fix a blob whose string lengths no longer match its contents. Everything runs locally in your browser, so credentials and customer data in a database dump never leave your machine.
No. Parsing, serializing, and repairing all happen in your browser with JavaScript — the serialized data is never sent to a server, so the tool works offline and is safe for production database dumps.
Almost always because the s: length prefixes no longer match the strings. PHP records each string's length in bytes — s:5:"Alice" — and if a search-and-replace changes the contents without updating the number, PHP refuses the entire value and returns false. Click Fix lengths to recompute every prefix from the actual content.
Running a plain SQL REPLACE() over wp_options or wp_postmeta breaks every serialized value that contained the old URL, because the stored lengths still describe the old text. Paste the broken value here and use Fix lengths — it rewrites the byte counts so PHP accepts the row again, leaving the rest of the structure untouched.
Lengths are counted in bytes, not characters. In UTF-8 an accented letter such as é takes two bytes and an emoji takes four, so "héllo" is five characters but s:6:. This tool counts bytes exactly the way PHP does, so multibyte content round-trips correctly.
Objects keep their class name, shown as "__php": "object" with a class field. Back-references (R: and r:) are resolved to the value they point at. INF, NAN, and integers too large for JSON are tagged rather than silently turned into null or rounded, so nothing is lost without you noticing.
Yes. PHP arrays are ordered maps, but JavaScript objects list integer-like keys first, so a naive converter would turn {name, 0} into {0, name}. This tool records the original order and honours it both in the JSON view and when serializing back.