JSONGuy

Python Dict to JSON Converter

Paste a Python dictionary or JavaScript-style object and get clean, standards-compliant JSON. Everything runs locally in your browser — nothing is uploaded.

Indent
Sort keys
Input247 chars · 15 lines
Output

Click Beautify to format your JSON.

Waiting for input…
Supports JS-style JSON & Python objects: comments, unquoted keys, trailing commas, None/True/False

What it handles

Most JSON tools only accept strict JSON. Paste anything with single quotes, None, or a tuple and they throw an error. JSONGuy normalizes the real syntax people actually use.

Single quotes

Python dicts often use 'single quotes' for keys and strings. We handle them directly — no find-and-replace needed.

None, True, False

Python's None, True, and False are converted to null, true, and false, including nested values.

Tuples

Python tuples (1, 2, 3) are normalized into JSON arrays [1, 2, 3], including nested tuples.

Trailing commas

Trailing commas after the last item are legal in Python and fine here too.

Need the full formatter with a tree view and syntax highlighting? Open the JSONGuy formatter.