How to open and read a JSON file online
A .json file is a text document containing structured data. Open it in jsonblocks to inspect the hierarchy and types locally; the file contents are not uploaded.
A .json file is a text document containing structured data. Open it in jsonblocks to inspect the hierarchy and types locally; the file contents are not uploaded.
Choose Open file above the input panel on the homepage.
Select a .json file from your computer. The browser reads it locally.
Read the validity status and document statistics, then expand the branches you need.
Use Search keys and values to locate a field. Click a block to pin and copy its JSON path.
Choose Format to pretty-print, or Copy to copy the input text. Keep the original file as a backup.
{ "name": "demo", "enabled": true, "ports": [8080, 8443] }Save this text as sample.json using UTF-8 encoding, then open it. The name is a string, enabled is a boolean, and ports is an array of numbers.
Your JSON stays in browser memory. Theme preference uses localStorage; document contents do not. Closing or refreshing loses unsaved input. Numbers are parsed using JavaScript number semantics, so formatting can round integers outside the safe integer range. Use strings for exact large identifiers and retain the original text.
Yes. Open file uses the device file picker where supported. The input and viewer stack vertically on smaller screens.
JSON is a data format. This viewer parses it as data and renders escaped text; it does not execute scripts contained in string values.