
PHP Unserialize is a free online tool for decoding and visualizing PHP serialized strings. PHP serialization converts complex data structures like arrays and objects into a storable string format, and this tool reverses that process to show you the original data structure.
Our tool supports multiple input formats including PHP serialized strings, JSON data, and Base64-encoded content. The interactive tree view makes it easy to explore nested data structures of any complexity.
Whether you're debugging WordPress options, analyzing session data, or working with cached data, our tool provides instant visualization with multiple output formats. All processing happens in your browser, ensuring your data remains private.
PHP's serialization format encodes a length with every string, and that is where the errors come from. If a serialized value has been edited by hand, truncated by a database column that was too small, or passed through a character-set conversion that changed the byte length of a multibyte string, the declared length no longer matches the content and the whole structure fails to parse. The message usually names the offset, which is the place to look. Object properties carry visibility in a way that is easy to miss: a private property is stored with the class name wrapped in null bytes around it, and a protected one with an asterisk, so keys can look corrupted when they are correct. Unserializing untrusted input in PHP is a known remote code execution risk, because it can instantiate objects and trigger magic methods. Decoding it here is safe because nothing is executed.
Copy and paste your PHP serialized string, JSON data, or Base64-encoded content into the input area. The tool auto-detects the format.
Choose from multiple output formats: print_r for readable output, var_dump for type information, var_export for valid PHP code, or tree view for interactive exploration.
Click the Unserialize button to decode your data. The result will appear in the output panel with your selected format.
Use the interactive tree view to expand and collapse nested structures. Copy the output or switch between formats to analyze your data.
Supports PHP serialized strings, JSON data, and Base64-encoded content
Explore nested data structures with expandable/collapsible tree visualization
View results as print_r, var_dump, var_export, or structured tree
See data types (Array, Object, String, Integer, Boolean) with element counts
Encode and decode text to/from Base64 format
Format, validate, and minify JSON data
Build, test, and debug regular expressions with real-time matching and a comprehensive cheatsheet
Convert JSON into a PHP array literal. Choose short [] or array() syntax, indentation, and an optional variable assignment, then copy the result. 100% in your browser.
0 comments
No comments yet. Be the first to share your thoughts!