PHP SERIALIZER / JSON

BACK

Convert PHP serialize() strings to JSON, or generate PHP serialized strings from JSON.

About the PHP Serializer

The PHP Serializer is a specialized development tool for converting data structures between PHP's native serialize() format and standard JSON. This is particularly useful when migrating legacy databases (such as WordPress metadata) or interacting with APIs that exchange PHP serialized objects.

How to Use

  • PHP to JSON: Paste a valid PHP serialized string (e.g. a:1:{s:3:"foo";s:3:"bar";}) into the left pane and click TO JSON ➔.
  • JSON to PHP: Paste a valid JSON object or array into the right pane and click 🡄 TO PHP to generate the equivalent PHP serialized string.

Privacy & Security

This converter operates completely within your web browser. Your data is processed locally and is never transmitted to or stored on any external server, ensuring your sensitive data structures remain totally private.