How to Open a JSON File (Windows, Mac, and Browser)
You can open a JSON file with a text editor (Notepad, TextEdit, VS Code), a browser, or an online JSON formatter. Formatting adds indentation so a compact file is easier to read.
A .json file is just plain text, so it's easy to open once you know the options. Here they are, from quickest to most powerful.
What Is a JSON File?
JSON (JavaScript Object Notation) is a lightweight, human-readable text format for storing structured data as key/value pairs and arrays. It's the most common format for APIs, config files, and data exchange:
{
"name": "Ada",
"roles": ["admin", "editor"],
"active": true
}
Because it's plain text, any text editor can open it — the only challenge is readability when it's minified into a single line.
Open It in a Text Editor
The universal method:
- Windows: right-click → Open with → Notepad (or VS Code / Notepad++ for syntax highlighting).
- macOS: right-click → Open With → TextEdit (or VS Code).
- Any OS: VS Code is best — it color-codes keys/values, folds sections, and flags syntax errors.
Open It in a Web Browser
Drag the .json file into a browser tab (or use File → Open). Browsers can display the text, but formatting and tree views differ by browser and installed extensions. Use a dedicated editor or formatter when you need a consistent view.
Open and Format It Online (Easiest to Read)
Minified JSON (one long line) is painful to read. Paste it into our JSON Formatter to add indentation. If you're unsure whether the file is valid, the JSON Validator shows the browser parser's error message; exact line details vary by browser.
If the file contains one JSON record per line and no enclosing array, it may be JSONL rather than one JSON document. See JSON vs JSONL before pasting the entire file into a JSON validator.
View JSON as a Table
When your JSON is an array of objects (like API results), a tree view still isn't ideal. Our JSON to Table tool turns it into rows and columns you can scan like a spreadsheet — perfect for data review.
Open a JSON File on a Phone
- iPhone: open it in Files; tap to preview, or open in a text-editor app.
- Android: use a text editor app, or open the file in Chrome.
- Either: paste the contents into the web-based JSON Formatter for a clean, readable view.
Make Minified JSON Readable (or Smaller)
Two directions, both one click:
- Pretty-print for reading → JSON Formatter
- Minify for production (strip whitespace) → JSON Minify
Frequently Asked Questions
How do I open a JSON file? Open it in any text editor (Notepad, TextEdit, VS Code), drag it into a web browser, or paste it into an online JSON formatter for a readable view.
What is a JSON file? A plain-text file storing structured data as key/value pairs and arrays, widely used for APIs and configuration.
What program opens JSON files? Any text editor opens them; VS Code is ideal for highlighting and error-checking, and browsers render them as a collapsible tree.
How do I open a JSON file on a phone? Use the Files app or a text-editor app, open it in a mobile browser, or paste its contents into a web-based JSON formatter.
How do I make a JSON file readable? Paste it into a JSON formatter to indent and color-code it, or open it in an editor like VS Code that pretty-prints and highlights syntax.
Related Reading
A .json file is never really "locked" — it's text. Open it anywhere, then format it for reading or convert it to a table when you need to actually work with the data.