How to Open a JSON File (Windows, Mac, and Browser)
You can open a JSON file with any text editor (Notepad, TextEdit, VS Code), a web browser, or an online JSON viewer. For readability, paste it into a JSON formatter that indents and color-codes the structure so it's easy to scan instead of reading one long line.
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 File → Open). Chrome and Firefox render JSON in a collapsible, color-coded tree — great for quickly exploring nested data without installing anything.
Open and Format It Online (Easiest to Read)
Minified JSON (one long line) is painful to read. Paste it into our JSON Formatter to instantly indent and syntax-highlight it. If you're not sure the file is even valid, the JSON Validator pinpoints the exact line of any syntax error.
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.