PHP Serializer
Convert JSON to PHP serialized strings and vice versa for debugging.
Last reviewed by the Radiatus Cloud team
Need this built for your product?
We design, build & host secure software & APIs.
Convert between JSON and PHP serialized data
PHP’s serialize format stores data as a string, and debugging it means converting to something readable. This tool converts JSON to PHP serialized strings and back, so you can inspect or produce serialized PHP data using familiar JSON.
Why this conversion helps
PHP serialized strings are compact but hard to read, with length prefixes and type markers that obscure the actual data. Converting a serialized string to JSON reveals the structure clearly; converting JSON the other way produces valid serialized data without hand-writing the fiddly format. This is invaluable when debugging serialized data stored in a database or session, or when you need to construct a serialized value for testing. The conversion handles the nesting and types that make the format awkward by hand.
Readable PHP data
It runs entirely in your browser, so nothing you paste is uploaded and the result is yours to copy straight into a project. Because it works client-side, you can use it on private code and data without anything leaving your machine.
Related tools
- JSON Formatter — Format and beautify JSON in your browser. Pinpoints syntax errors by line and column, flags unsafe integers, and never uploads your data to a server.
- JSON Validator — Validate JSON syntax with precise line and column errors, and check documents against a JSON Schema. Runs locally in your browser, nothing uploaded.
- Regex Tester — Test regular expressions against sample text with live match highlighting, capture groups and flag control. Runs entirely in your browser.
- HTML Minifier — Minify HTML by removing comments and redundant whitespace, without breaking inline elements or pre blocks. Runs entirely in your browser.
Frequently Asked Questions
What does it convert?
JSON to PHP serialized strings and serialized strings back to JSON, so you can read and produce serialized PHP data using familiar JSON.
Why is serialized PHP hard to read?
Because it uses length prefixes and type markers that obscure the actual data. Converting to JSON reveals the structure clearly.
When is this useful?
Debugging serialized data in a database or session, or constructing a serialized value for testing without hand-writing the format.
Does it handle nested data?
Yes. It handles the nesting and types that make the serialized format awkward to read or write by hand.
Is my data uploaded?
No. The conversion runs entirely in your browser.
Privacy & Security
Runs in your browser. Nothing you enter is uploaded or stored.
About This Tool
This tool runs entirely in your browser. No data is sent to any server, ensuring complete privacy. Simply use the interface above to get started — no registration or login required.
Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.
Related Tools
JSON Formatter
DeveloperFormat and beautify JSON in your browser. Pinpoints syntax errors by line and column, flags unsafe integers, and never uploads your data to a server.
JSON Validator
DeveloperValidate JSON syntax with precise line and column errors, and check documents against a JSON Schema. Runs locally in your browser, nothing uploaded.
Regex Tester
DeveloperTest regular expressions against sample text with live match highlighting, capture groups and flag control. Runs entirely in your browser.