← Back to Home

JSON Stringify / Parse

Convert JavaScript objects to JSON strings (stringify) or JSON strings to objects (parse)

Examples:

Stringify: {name: 'John', age: 30}{"name":"John","age":30}
Parse: {"name":"John","age":30}{name: 'John', age: 30}

How to use

  1. Select Stringify to convert JS object syntax to JSON, or Parse to go the other way.
  2. Paste your input in the left box; results appear on the right.
  3. Fix any error messages (quotes, commas) and retry.
  4. Copy the result for APIs, configs, or debugging.

Examples

Stringify

{name: 'Ada', active: true} → {"name":"Ada","active":true}

Parse

{"name":"Ada","active":true} → {name: "Ada", active: true}

FAQs

Why did parsing fail?

Common reasons: missing quotes around keys, trailing commas, or single quotes in JSON.

Is my input sent to a server?

No. Parsing/stringifying happens entirely in your browser.

Can I trust eval?

We wrap objects in parentheses and run in-browser; still, only paste trusted code.

Related tools