FORMATFYCOM formátovač · validátor · minifikátor About

What's new

PHP Unserialize

Turn PHP serialize() output into readable JSON, objects included, and repair broken string lengths. Free, in your browser.

Input

Output


      

How to read PHP serialize() data

Turns PHP serialize() output into readable JSON — arrays, objects (protected and private properties too), enums and references. “Fix string lengths” repairs data whose lengths broke after a database charset change.

  1. Paste serialized data

    E.g. from a WordPress or Magento database, or a session.

  2. Fix lengths if needed

    On “String doesn’t have the declared length”, turn on the fix.

  3. Edit and convert back

    Edit the JSON and convert it back with PHP serialize, format preserved.

Errors it detects

String length mismatch

Typically after a database charset change or manual editing.

s:5:"čau";→s:5:"čau"; ← length in bytes
✓ fix offered

Lost \0 characters

Protected/private properties contain invisible \0; they get lost when copying and lengths break.

✓ fix offered

Incomplete data

A closing } is missing — a truncated record. The tool shows the line and column.

FAQ

Why does WordPress data break after a migration?

A search & replace of the domain changes the text length but not the number in s:N:. This tool repairs the lengths.

Is it free, without sign-up?

Yes. No sign-up, no ads and no size limit — the only limit is your computer.

Is my data sent to a server?

No. Everything runs in your browser and the data you paste never leaves it — fine even for data with tokens or personal information.

Related tools