PHP Unserialize Online — Free Unserializer Tool

Decode PHP serialized strings into readable JSON or PHP array syntax instantly. Debug WordPress options, session data and cache blobs safely. All processing happens in your browser — no data sent to any 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
$data = [ 'config' => (object)[], 'name' => 'test', 'active' => true, 'settings' => (object)[] ];
With removeEmptyObjects: true
a:2:{s:4:"name";s:4:"test";s:6:"active";b:1;}
With removeEmptyObjects: false
a:4:{s:4:"name";s:4:"test";s:6:"config";O:8:"stdClass":0:{}s:6:"active";b:1;s:8:"settings";O:8:"stdClass":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.

Safe browser decoding

Processing runs in JavaScript in your browser — no PHP object execution, suitable for inspecting untrusted serialized blobs offline.

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. FastMinify decodes it to readable JSON so you can inspect WordPress options, session data or cache blobs. Indent options control how the JSON is formatted. All processing stays in your browser. To encode JSON into PHP serialize format, use PHP Serialize.

Editing Serialized PHP Data Safely

Manually editing PHP serialized strings is error-prone because the format includes string length prefixes. Changing a single character can corrupt the structure. Unserialize to JSON here, edit the readable version, then re-serialize with PHP Serialize so lengths stay correct.

PHP Unserialize FAQ

Decode serialized PHP to JSON — privacy-local answers

Can I unserialize PHP online?

Yes. Paste any PHP serialized string into this tool and it decodes to readable JSON for arrays, objects, strings, numbers, booleans and null. 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 — safer for inspecting opaque blobs offline.

Can I edit serialized PHP data?

Yes. Unserialize to JSON, edit in the editor, then re-serialize with PHP Serialize. That avoids broken string-length prefixes.

What input format do you accept?

Standard PHP serialize strings (for example a:…, s:…, O:…, i:…, b:…, N;). Invalid or truncated payloads produce a clear error instead of silent corruption.

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.

Serialization

Serialize and deserialize PHP data structures beside JSON workflows.

Explore other tool categories

Minify

Shrink code and assets for production — minify JavaScript, CSS, HTML, JSON and XML before gzip or CDN deploy.

Beautify

Make code readable with consistent indentation — beautify JavaScript, CSS, TypeScript, SCSS, LESS, Markdown, GraphQL, SQL, YAML and more in your browser.

Unminify

Expand minified or compressed code — unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats when debugging or reviewing.

Conversion

Transform data between JSON, YAML, XML and CSV locally — no server uploads.

CSS preprocessors

Compile SCSS or LESS to standard CSS in the browser — pair with beautify or minify for a full stylesheet workflow.

JSON Tools

Validate, format, diff and explore JSON payloads — complementary to minifiers and converters.

SVG Tools

Preview, optimize with SVGO, export Data URI, resize, beautify, convert to JSX and validate SVG — all in your browser.

DevOps & Infra

Terraform HCL format/validate/minify, Dockerfile format & lint, Docker Compose and .env validation.

CI/CD

GitHub Actions and GitLab CI — format YAML and check workflow/job structure in your browser.

Logs & observability

Line-oriented JSON/NDJSON and Nginx/Apache access logs — format, filter, validate, and CSV/TSV.

Kubernetes

Multi-doc manifests, structural validate, Ingress/Deployment starters, and Helm values formatting.

Networking / IP

CIDR, subnets, and IPv4/IPv6 helpers — in your browser.

Security & tokens

JWKS, X.509 certificates, and secrets scan — browser-local.

API & schemas

OpenAPI tools to format, validate, and lint your specs.

Encoding

Encode or decode Base64, URL components and HTML entities — client-side only.

Developer utilities

Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugify, number bases, case, text diff, and chmod — all client-side.

Text & Markdown

Count words, build Markdown TOCs, and clean line lists — all in your browser.

AI & LLM

Token counting, pricing estimates, and context-window fit — 100% browser-local.