Toolbox

Online PHP Serialize / Unserialize

PHP SerializeUnserializeJSON to PHPPHP

Convert between JSON and PHP serialize format for strings, ints, booleans, arrays and objects with UTF-8 byte length handling, all local processing.

JSON
PHP Serialize
All processing is done locally, no upload

How to Use

  • Paste any valid JSON, supports nesting, arrays and escapes
  • Click Beautify to auto indent and format
  • Click Minify to remove whitespace into one line
  • All operations run locally for privacy

Related Tools

FAQ

What is PHP serialize?

PHP serialize encodes arrays/objects to strings like a:2:{i:0;s:3:"foo";} for storage, unserialize restores them.

How to convert JSON to PHP serialize?

Paste JSON like ["foo","bar"] and click JSON to PHP to get a:2:{i:0;s:3:"foo";i:1;s:3:"bar";}.

Which types are supported?

string, int, float, bool, null, indexed and associative arrays with nesting; objects O:... not yet supported.

Will my data be uploaded?

No, all operations run locally.