Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

PHP Serialized ↔ JSON

Turn a serialized wp_options value into readable JSON, edit it, and turn it back into a byte-accurate serialized string. Both directions, in your browser.


      

The WordPress workflow

WordPress stores arrays and objects in wp_options (and post/user meta) as PHP serialize() strings. To edit one by hand: convert it to JSON here, make your change, switch to JSON → Serialized, and paste the result back into the database. String byte-lengths are recomputed correctly, so the value unserializes.

Byte-accurate

Serialized strings are prefixed with their length in bytes. This converter counts UTF-8 bytes, so multibyte characters (accents, emoji) produce valid output that PHP accepts.

Related

Just need one direction? Use PHP Serialize & Unserialize. Repairing lengths broken by a search-replace? Use Fix Serialized Data. PHP objects (O:) are not supported.

Frequently asked questions

When would I use this over the Serialize tool?

Use this to move a whole wp_options value between serialized PHP and editable JSON in one place. Use the Serialize tool for single strings, bulk lists, or just checking a value.

Does it handle multibyte characters?

Yes — string byte-lengths are recomputed in UTF-8, so accents and emoji produce valid serialized output that PHP accepts.

Related tools