πŸ”“ PHP Unserialize Tool

Free online PHP unserialize tool - convert PHP serialized strings to readable fo...

Zero dependency Β· Works offline

πŸ“‹ Input Serialized Data

πŸ“Š parseResult

What can PHP Unserialize Tool do?

PHP Unserialize Tool is a free online tool that parses PHP serialize() generated strings into readable JSON format. It supports string, integer, float, boolean, NULL, array, object, and all other PHP data types, including nested structures. All parsing happens locally in your browser β€” no data upload needed.

Features

How to Use

1. Paste a PHP serialize() generated string into the input area

2. The tool automatically parses and displays the result in JSON format

3. Click Copy or Download to export the parsed result

4. Use the example buttons to quickly load sample data

Use Cases

Debug PHP Sessions

View serialized data stored in PHP sessions to quickly identify session data issues.

Parse Database Fields

Parse PHP serialized fields stored in databases, such as WordPress wp_options table.

API Data Debugging

Debug APIs that use PHP serialized format to view actual data structure.

Technical Details

PHP serialized format uses type + length + value structure to store data. String format: s:Length:"content"; integer format: i:number; array format: a:elementCount:{key;value;...}. Object format: O:classLength:"className":attributeCount:{attribute;attributeValue;...}. PHP 7+ Serializable interface and __serialize/__unserialize methods provide additional serialization control.

FAQ

What's the difference between PHP serialized and JSON?β–Ό
PHP serialized supports more data types (such as objects, references, resources), while JSON is more universal across programming languages. PHP serialized preserves type information, JSON only stores basic types. This tool converts PHP serialized to readable JSON format.
Why does parsing fail?β–Ό
Check that the serialized string is complete, the semicolons are correct, and the length values match the actual content. Common errors: missing closing semicolons, length mismatch with actual content, incorrect type indicators.
Does it support PHP 8 new features?β–Ό
This tool supports the base PHP serialized format specification, which is consistent across different PHP versions. PHP 8 __serialize/__unserialize are PHP-level methods and do not affect the serialized string format.
Does deserializing objects execute code?β–Ό
No. This tool parses the serialized string in JavaScript β€” it does not execute any PHP code. It only extracts data structure without calling any functions or methods, so it is completely secure.
Copied to clipboard