Updated November 16, 2026 · Step-by-step file tutorial
How do you open a JSON file? You can open a .json file in a plain-text editor such as Notepad, TextEdit (plain-text mode), Visual Studio Code or another UTF-8-capable editor. JSON is text, not a special application format. You can read it without installing a JSON-specific program, although a code editor or formatter will make complex content easier to understand.
Fastest method: Right-click a .json file and choose Open with, then select a trusted text editor. If the content is on one long line, use a JSON formatter to display it with indentation. Never run a downloaded file as a script merely to read its JSON data.
What Is a JSON File?
A JSON file stores structured information using JavaScript Object Notation. Developers commonly use these files for configuration settings, app data, exported datasets and API responses. The contents might look like this:
{
"website": "PerkAbility Rewards",
"category": "free tools",
"active": true,
"topics": ["JSON", "coding", "design"]
}
The braces represent an object; property names appear in double quotes. Values can be text, numbers, true, false, null, arrays or nested objects. A .json file often uses UTF-8 encoding and is directly readable as text.
How to Open JSON Files in Windows 11 or Windows 10
- Locate your
.jsonfile in File Explorer. - Right-click the file and choose Open with.
- Choose Notepad to read the raw text, or Visual Studio Code for syntax highlighting and folding.
- If Windows asks which app to use, select a trusted text editor; do not choose an unrelated installer or executable.
- Use the editor’s formatting option when available, or copy non-sensitive JSON into a formatter for easier reading.
If Notepad shows the entire object on one line, the file may still be perfectly valid. Whitespace is optional in JSON; formatting changes readability, not its data structure.
Opening JSON with Visual Studio Code
In VS Code, select File → Open File and pick the JSON file. The editor typically recognizes the extension, highlights the syntax and can help spot errors. You can also drag the file into the editor. This is useful for learning JSON, handling configuration files or comparing large structures.
How to Open a JSON File on macOS
- Find the file in Finder.
- Control-click or right-click it and choose Open With.
- Select a text editor, such as TextEdit or a programming editor.
- In TextEdit, use plain-text mode when working with JSON, and avoid saving it as an RTF document.
- Review the content and save a separate copy if you plan to make changes.
JSON can be viewed on Macs without converting it into a different file type. A dedicated code editor may be more comfortable when your file contains deeply nested arrays and objects.
How to Open JSON Files on Android
Most Android phones do not include a dedicated JSON viewer by default, but you can still work with these files:
- Open your Files or file-manager app and locate the downloaded
.jsonfile. - Tap the file. If the phone offers compatible apps, choose a trusted text or code editor.
- If none is available, install a reputable text-editor app that supports plain-text files from your device’s normal app store.
- Alternatively, transfer the file to a laptop or desktop and open it there.
For private files, prefer a local editor rather than uploading the data to a website you have not evaluated.
How to Open JSON Files on iPhone or iPad
On iOS or iPadOS, locate the file in the Files app. Preview support depends on the file and software version; you can use the share or Open in menu to choose a compatible text or code editor. If the preview is limited or unreadable, using a dedicated editor is more reliable.
You can also open a JSON file sent by email by saving it to Files first. As on Android, avoid uploading confidential configuration files or API tokens to public online viewers.
Can a Browser Open a JSON File?
Modern browsers can often display JSON text when the server supplies a JSON response or the local file is opened directly. Whether formatting, syntax highlighting or folding is available varies by browser and extensions. A browser is fine for casual inspection; a code editor is generally better for editing and validation.
How to Read JSON with Python
Developers who want to do more than view the text can use Python’s standard-library json module:
import json
from pathlib import Path
path = Path("example.json")
with path.open("r", encoding="utf-8") as f:
data = json.load(f)
print(data)
The code reads a local file and parses it into Python values. Invalid syntax raises a JSONDecodeError. Only run code you understand, and do not assume every JSON document has the same object keys.
How to Format a JSON File Without Changing Its Meaning
When data is tightly packed into one line, a formatter can improve readability. Proper indentation makes objects, arrays and nested fields easier to follow. Use the free PerkAbility Rewards JSON Formatter to explore JSON formatting, and review your file’s content before pasting anything sensitive into any online service.
Common Problems When Opening JSON Files
| Problem | Likely explanation | Next step |
|---|---|---|
| No app is associated with .json | Operating system has no default editor | Choose a text editor manually |
| All data appears on one line | JSON is minified | Format for readability |
| Unexpected token / invalid JSON | Syntax or response problem | Inspect raw text and use a parser |
| Strange characters | Encoding mismatch or binary file | Check UTF-8 and file provenance |
| Permission denied | File access restriction | Check file permissions and location |
JSON Viewer, JSON Formatter and JSON Editor: What’s the Difference?
- Viewer: makes content readable without necessarily editing it.
- Formatter: reorganizes whitespace and indentation; it does not guarantee broken JSON is repaired.
- Editor: allows changes, often with syntax highlighting and validation features.
- Parser: interprets valid JSON into a program’s data structure.
Choose the right tool for your task. If your goal is only to read a configuration file, a viewer or text editor may be enough. If you need to inspect a large API response, a formatter and validator can be useful. If you are debugging JSON, read our plain-English explanation of common JSON errors.
Frequently Asked Questions
How do I open a JSON file for free?
Use a built-in plain-text editor, a free code editor or another trusted application that supports .json files.
Can I open JSON without special software?
Yes. JSON is plain text, so a basic text editor can show it. More advanced tools only make viewing and editing easier.
Why won’t my JSON file open?
The file association may be missing, the file may be corrupted, permissions may prevent access, or the contents may not actually be JSON.
Can Excel open a JSON file?
Some Excel versions can import JSON through Power Query or Get Data workflows. Importing structured data is different from opening the original file as editable plain text.
Is it safe to upload JSON to an online viewer?
Only after reviewing what the file contains and the viewer’s data-handling practices. Remove passwords, tokens and personal information before sharing data with third parties.
References
This guide covers common desktop and mobile methods in 2026. Menu names can differ by operating-system and app version.

3 Responses