Skip to content

JSON to Python Literal

Convert JSON into a Python literal using True, False and None.

Input

41 chars1 lines

Result

Type or paste on the left — the result updates as you type.

Outputs literals, not classes or executable statements. Object keys become strings; JSON numbers follow JavaScript precision.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: