What Is a JSON File? And What Opens One Safely

You clicked download and ended up with a file ending in .json, and Windows has no idea what to do with it. That is normal, and the file is almost certainly harmless.

A JSON file is plain text. It is not a program, it cannot run on its own, and you can read it in something already on your machine.

I checked what my own PC had registered for that extension, and the answer was nothing at all.

What it actually is

Two sentences, and then the practical half.

JSON is a way of writing structured information as plain text. Names on the left, values on the right, wrapped in braces and brackets.

That is the whole thing. No formatting, no images, no code that executes. A JSON file is closer to a shopping list than to a program.

⚠️ It is used because programs read it easily and people can still read it. Which is why exports, settings and saved configurations so often arrive in it.

Ours: Windows has nothing registered for it

The measurement that explains the prompt you got.

Ours, and checked on this PC. I looked at five extensions rather than one. The `.json` extension had no default app set and no machine-wide file type registered at all.

By comparison, XML files opened in a browser here and LOG files opened in Notepad, both with defaults recorded. JSON simply has none.

One line answers it on your own PC, and it only reads:

Get-ItemProperty "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.json\UserChoice" -ErrorAction SilentlyContinue

So the "How do you want to open this file?" prompt is not a fault. Windows genuinely has no opinion about it.

Microsoft does not list it either

Worth saying, because it explains why there is so little guidance.

Documented by Microsoft on its file extensions page: extensions "tell your computer which application created or can open the file and which icon to use for the file."

⚠️ We could not find `.json` anywhere on that list. It names csv, txt, exe and zip among others, and JSON is absent despite being everywhere.

That is also why yours has a blank icon. Nothing has claimed the extension, so nothing supplies one.

What opens one

Three options, in order of how much you should bother.

Notepad, which you already have. Right-click, Open with, Notepad. It opens instantly and shows the text.

A browser will display it too, often more readably, by dragging the file onto an open browser window.

⚠️ A code editor formats it properly with indentation and folding, which only matters if you are working with one regularly.

Ours, and marked as ours: do not install anything to open a JSON file. I have never needed more than Notepad to read one. The browser is enough for looking at structure.

Reading one without changing it

Practical, because that is usually all you want.

Opening it changes nothing, because text files are only modified when you save.

Notepad now keeps unsaved tabs on disk, which matters if the file holds anything sensitive. Two Notepads exist and only one behaves that way.

⚠️ A very long JSON file arrives as one enormous line. Turn word wrap on in Notepad, or drop it into a browser instead.

Why you got one

The common cases, so you know what you are holding.

A data export. Many services hand you your own data as JSON when you ask for a copy of it.

Settings or a configuration. Applications increasingly store their preferences this way rather than in an old .ini file.

A saved game, or the workspace your editor reopens with, for anything built in the last decade.

⚠️ Or a partial download. A JSON file that is a few bytes long and reads as an error message is a failed request rather than a file.

The one case to be careful about

Being straight, because "harmless" needs a boundary.

A JSON file cannot run, but its contents can be private. Data exports routinely contain email addresses, message history and account details in plain readable text.

⚠️ So treat one like a document, not like a picture. Do not leave it in Downloads and do not send it on without reading it.

And check the real extension. Turn file name extensions on so nothing can hide an executable behind a JSON-looking name.

Editing one, and the rule that breaks them

For the case where something told you to edit a config file.

Every brace and bracket must be matched, and no comma may trail the last item. That single rule accounts for most broken JSON files.

⚠️ Copy the file before you touch it. There is no undo once the program that reads it refuses to start.

Ours: change one value, save, test. Changing three things and then finding it broken tells you nothing about which one did it.

Making Windows open them the same way every time

Optional, and it takes four seconds.

Set a default for the extension rather than choosing every time. That is set per file type on the Default apps page, and .json is one of the ones nothing has claimed.

Notepad is a sensible choice unless you edit them often.

Status: checked on Windows 11, 25 August 2026. Microsoft's file extensions page is quoted for what an extension does and how to show extensions, and we could not find .json anywhere on its list. The absence of any default app or registered file type for .json was read on this PC, alongside .xml and .log which both had one.

What is a JSON file used for?

Storing structured information as plain text. Programs read it easily and people can still read it, which is why data exports, application settings and saved configurations so often arrive in that format.

Is a JSON file safe to open?

Yes, in the sense that it cannot run, being plain text with no executable part. What you should watch is the contents rather than the file, because data exports often hold email addresses and message history in readable form.

What program opens a JSON file on Windows?

Notepad, which you already have. Right-click the file, choose Open with, then Notepad. Dragging it onto a browser window usually displays it more readably if you only want to look at the structure.

Why does Windows not know how to open my JSON file?

Because nothing has claimed the extension. On the PC tested here, JSON had no default app and no registered file type at all, while XML and LOG both did. That is why you get the "How do you want to open this file?" prompt.

The Short Version

  • JSON is structured information written as plain text. It cannot run.
  • On the machine tested here, JSON had no default app and no registered file type.
  • That is why Windows asks how you want to open it, and why the icon is blank.
  • Microsoft's own list of common file extensions does not mention .json at all.
  • Notepad opens one. A browser displays one more readably. Install nothing.
  • Turn word wrap on, because a long JSON file arrives as one enormous line.
  • The contents can be private even though the file is harmless.
  • If you edit one, match every bracket and leave no trailing comma.

Where to Next

Right-click the file, choose Open with, and pick Notepad. Five seconds, and you will know what you are actually holding.

If it is a data export, read it before you send it anywhere. Those routinely contain more about you than you expect.

Set a default for the extension if these keep arriving, so Windows stops asking every time.

Hit a .json file that Windows refuses to open even with Notepad? Tell me where it came from in the comments. That should not happen and it would be worth understanding.

Leave a Comment