Developer Tool

JSON to Python Dict

Paste JSON below to inspect a clean, formatted Python dictionary. Conversion runs in your browser.
JSON
Output (Python Dict)
// Your Python dictionary will appear here...
As conversões são processadas diretamente no seu navegador.

How to convert JSON to a Python dictionary

JSON is the format most commonly used by web APIs, configuration files and data exports. Python dictionaries use a similar structure, but their literals are different: JSON uses true, false and null; Python uses True, False and None. This converter formats the result so you can paste it into a Python script, test fixture or notebook.

What this tool changes

Example

Paste {"active": true, "tags": ["api"], "owner": null}. The result is {'active': True, 'tags': ['api'], 'owner': None}. JSON requires double quotes around keys; Python allows single or double quoted strings.

Common errors

A valid JSON document cannot have trailing commas, comments, or single-quoted strings. If the input comes from JavaScript rather than an API response, check those details first. Your data stays in your browser; it is not uploaded to our server.

Need the reverse operation? Use our Python dict to JSON converter. For a practical walkthrough, read our JSON to Python guide.

Copied to clipboard