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
- Full type support: Parses string, integer, float, boolean, NULL, array, object
- Nested structures: Supports multi-level arrays and objects
- JSON output: Converts PHP serialized data to standard JSON format
- Real-time parsing: Input is parsed instantly, no button click needed
- Error hints: Shows specific error position when parsing fails
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.