PHP Unserialize Online — Free Unserializer Tool

Decode PHP serialized strings into readable JSON or PHP array syntax instantly. Inspect WordPress options, session data and cache blobs in your browser — no PHP object execution, nothing sent to a server.

Loading…
PHP Unserialize
Decode PHP serialized strings into readable JSON — debug WordPress options, sessions and cache blobs in your browser.

Basic example

Serialized PHP input

a:5:{s:3:"app";s:10:"FastMinify";s:7:"version";s:5:"2.1.0";s:8:"features";a:3:{s:1:"0";s:6:"legacy";s:1:"1";s:6:"modern";s:6:"minify";b:1;}s:5:"flags";a:3:{i:0;b:1;i:1;b:0;i:2;N;}s:8:"metadata";a:2:{s:6:"author";s:4:"Team";s:7:"license";s:3:"MIT";}}

Decoded JSON output

{ "app": "FastMinify", "version": "2.1.0", "features": { "minify": true, "0": "legacy", "1": "modern" }, "flags": [true, false, null], "metadata": { "author": "Team", "license": "MIT" } }

Output formatting options

Include Null Values
Includes properties with null values in the output

Comparison with/without option:

Original code
$data = [ 'name' => 'test', 'value' => null, 'active' => true, 'count' => null ];
With includeNullValues: true
a:4:{s:4:"name";s:4:"test";s:5:"value";N;s:6:"active";b:1;s:5:"count";N;}
With includeNullValues: false
a:2:{s:4:"name";s:4:"test";s:6:"active";b:1;}
Difference
Properties with null values are included in the output
Remove Empty Arrays
Removes empty arrays from the result

Comparison with/without option:

Original code
$data = [ 'items' => [], 'name' => 'test', 'active' => true ];
With removeEmptyArrays: true
a:2:{s:4:"name";s:4:"test";s:6:"active";b:1;}
With removeEmptyArrays: false
a:3:{s:5:"items";a:0:{}s:4:"name";s:4:"test";s:6:"active";b:1;}
Difference
Empty arrays are removed from the result
Remove Empty Objects
Removes empty objects from the result

Comparison with/without option:

Original code
{ "config": {}, "name": "test", "active": true, "settings": {} }
With removeEmptyObjects: true
a:2:{s:4:"name";s:4:"test";s:6:"active";b:1;}
With removeEmptyObjects: false
a:4:{s:6:"config";a:0:{}s:4:"name";s:4:"test";s:6:"active";b:1;s:8:"settings";a:0:{}}
Difference
Empty objects are removed from the result
Sort Keys
Sorts object keys alphabetically in the output

Comparison with/without option:

Original code
$data = [ 'zebra' => 'striped', 'apple' => 'red', 'banana' => 'yellow' ];
With sortKeys: true
a:3:{s:5:"apple";s:3:"red";s:6:"banana";s:6:"yellow";s:5:"zebra";s:7:"striped";}
With sortKeys: false
a:3:{s:5:"zebra";s:7:"striped";s:5:"apple";s:3:"red";s:6:"banana";s:6:"yellow";}
Difference
Object keys are sorted alphabetically in the output
Beautify Options
Indentation options for Beautify and Unminify (not used by Serialize)

Indentation size

Number of spaces (or tab width) used when formatting PHP.

Indent type

Use spaces or tabs for indentation when beautifying PHP.

What this unserializer does

Decode PHP serialized strings into readable JSON for debugging WordPress options, sessions and cache dumps — entirely in your browser.

Unserialize PHP → JSON

Decode PHP serialized strings back into readable JSON. Restore structures from serialized format for inspection and editing.

In-browser parsing

Processing runs in JavaScript in your browser — it does not execute PHP objects. Suitable for inspecting untrusted array/scalar blobs offline. O: and R: payloads are not decoded.

Need to serialize instead?

Convert JSON back to PHP serialize format with the PHP Serialize tool.

How to Unserialize PHP Data Online

Paste a PHP serialized string (for example a:3:{…}) into the left editor and click Unserialize. Output is readable JSON or PHP array syntax (toolbar). This parser accepts N;, b:, i:, d:, s: and a: — not O: objects or R: references. Indent options format JSON output. To encode, use PHP Serialize.

Editing Serialized PHP Data Safely

Hand-editing s:n:"…" prefixes is error-prone. Decode here, edit the readable JSON or PHP array, then re-serialize with PHP Serialize. That keeps prefixes consistent for arrays and scalars this parser supports — it is not a byte-accurate WordPress SQL migration utility.

PHP Unserialize FAQ

Decode serialized PHP to JSON — privacy-local answers

Can I unserialize PHP online?

Yes. Paste a PHP serialized string of arrays and scalars. It decodes to readable JSON or PHP array syntax. Processing stays in your browser.

Is PHP unserialize safe here?

In PHP apps, unserialize() on untrusted input can enable object injection. This browser tool parses the format in JavaScript and does not execute PHP objects. It also does not decode O: class objects or R: references.

Can I edit serialized PHP data?

Yes. Unserialize to JSON or PHP array syntax, edit in the editor, then re-serialize with PHP Serialize. That avoids hand-editing string-length prefixes for the array and scalar tokens this parser supports.

What input format do you accept?

Array and scalar serialize() tokens: a:…, s:…, i:…, d:…, b:…, N;. Object (O:) and reference (R:) payloads produce a clear error. Invalid or truncated payloads are rejected rather than silently corrupted.

Is my data processed securely?

Yes. Unserialization runs entirely in your browser. Nothing is uploaded to FastMinify servers.

I need to serialize JSON instead — where?

Use PHP Serialize to convert JSON into a valid PHP serialized string.

Verify it yourself

FastMinify processes your input in the browser. Inspect the network panel or read our validation gate to confirm nothing leaves your device.

Serialize and deserialize PHP data structures beside JSON workflows.