jsonpost

Python Dict to JSON Converter

Paste a Python dictionary with single quotes and True/False/None and convert it to valid JSON.

Runs entirely in your browser — your data never leaves your device.

Loading tool…

How to use this tool

  1. 1Paste your Python dict literal into the editor.
  2. 2The tool converts quotes and keywords to valid JSON.
  3. 3Copy the JSON output.

Frequently asked questions

What Python literals are converted?
Single quotes become double quotes, and True, False, and None become true, false, and null.
Does it handle tuples?
Tuples are converted to JSON arrays, since JSON has no separate tuple type.
Is my data uploaded to a server?
No. Every tool on JSONPost runs entirely in your browser using JavaScript. Your JSON never leaves your device, so it is safe to use with private or sensitive data.

Related tools