Data & JSON

PHP Serialize & Unserialize

Bidirectional PHP serialize() and unserialize() to JSON converter running locally in your browser with exact UTF-8 byte-length handling for strings, arrays, and PHP objects.

About this tool

Inspect PHP serialized payloads from Redis, WordPress, or database columns by converting them into readable JSON, or serialize JSON back into PHP format locally.

String lengths in s:<len>:"..."; are decoded strictly by UTF-8 byte length so multibyte characters never misalign offsets.

Best use cases

  • Decode PHP serialized cache or session payloads into formatted JSON.
  • Edit structured JSON and re-serialize it for local testing.

How to use it

  1. Paste a PHP serialized string on the left or JSON on the right.
  2. Click Unserialize → JSON or JSON → Serialize.
  3. Copy or download the converted result.

Scope and limits

  • Up to 200,000 characters, 64 nesting levels, and 50,000 nodes; backreferences (r:/R:) are not supported.

Data processing

All parsing runs locally in your browser without executing PHP or uploading session data.

FAQ

How are multibyte UTF-8 strings handled?

The parser operates on UTF-8 byte arrays so declared byte lengths match PHP's native strlen behavior.

Related tools

More in this category