Python Dict → JSON

Paste a Python dict below. Converts single quotes, True/False/None, and trailing commas automatically.

Python Dict

JSON Output

{
  "name": "Alice",
  "active": true,
  "score": null,
  "tags": [
    "dev",
    "python"
  ]
}

How it works

  • Changes Python single-quoted strings to JSON double-quoted strings.
  • Maps True, False, and None to JSON values.
  • Removes trailing commas, then validates and formats the result.