How to use the PHP Unserialize Viewer & Editor
PHP deserialization bugs are a staple of web CTFs and penetration tests, and cookies or parameters often carry data like O:4:"User":…. Editing it by hand makes it easy to get the s: lengths wrong. This tool converts the data to order-preserving JSON, recomputes every length in UTF-8 bytes after you edit, and outputs URL- and Base64-encoded versions.
- Paste a serialize() string, or a URL- or Base64-encoded cookie value, and click Parse.
- Edit values in the JSON on the right — for example, set isAdmin to true.
- Click Re-serialize and copy the raw, URL-encoded or Base64 version back into your test.