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.

加载中…

How to Use

  • Paste the source data into the left panel
  • Confirm the target format and click Convert
  • Copy or download the result from the right panel
  • All processing runs locally in your browser; your code is never uploaded

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.