PHP Serialize ↔ JSON

PHP Serialize ↔ JSON

Unserialize PHP serialize() strings (WordPress options, sessions) into readable JSON and serialize JSON back – with correct UTF-8 byte lengths.

Runs in your browser – nothing to install.

Developer
Bugfish

About this tool

Turn PHP serialize() strings – WordPress options, sessions – into readable JSON and serialize JSON back. String lengths are counted in UTF-8 bytes as PHP does, and "Repair lengths" fixes strings that were edited by hand. Objects and protected or private properties are marked clearly.

Never unserialize() untrusted input in PHP – use json_decode() or allowed_classes => false. Runs entirely in your browser – nothing you enter leaves this page.

Comments

Log in to write a comment or reply. A moderator checks every comment before it appears – for security and to keep spam and abuse out.

No comments yet.