How to Open a JSON File on Windows, Mac and in Excel

Published 24 November 2026 · 5 min read

A .json file is plain text, so you do not need special software to open it. The real question is how you want to see it: as readable text, as a collapsible tree, or as rows in a spreadsheet. Here are the quickest ways for each.

Open it as text

Any text editor can open a JSON file.

  • Windows: right-click the file, choose Open with, then Notepad.
  • Mac: right-click the file, choose Open With, then TextEdit. If TextEdit shows formatted text, switch it to plain text under Format.
  • Any system: a code editor such as Visual Studio Code opens JSON, colours it and can format it for you.

The problem with plain text is that many JSON files are written on a single line. A 5 MB API response in Notepad is one very long line that is hard to read.

Make it readable

Paste the text into the JSON Formatter, or drop the file onto the page. It indents the structure, offers a tree view you can fold and unfold, and tells you if the file is not valid JSON, with the line and column. Everything runs in your browser, so the file is not uploaded. This works on Windows, Mac, Linux, Chromebooks and tablets, because it needs only a browser.

Open it in a browser

You can drag a .json file into a browser window. Some browsers show a formatted, foldable view and others show plain text. It is a quick look, but it gives no help when the file is broken.

Open it in Excel

Opening a .json file directly is not the way to get a table in Excel. In recent versions of Excel for Windows, use the Data tab, then Get Data, From File, From JSON. Excel opens Power Query and shows the data as a record or a list. Use the expand buttons on the column header to turn nested objects and lists into columns, then load the result into the sheet.

If that feels like a lot of steps, convert the file first. The JSON to Excel converter flattens nested objects and arrays and downloads an .xlsx workbook, and the JSON to CSV converter makes a CSV for Excel, Google Sheets or a database. Both show a preview before you download.

Open it in Google Sheets

Sheets does not import JSON on its own. Convert the file to CSV first, then use File, Import and upload the CSV.

If the file will not open or says it is invalid

  • It opens as garbled text. The file may be compressed (.gz or .zip). Unzip it first.
  • A tool says the JSON is invalid. Look for a trailing comma, single quotes, comments or a cut-off ending. The Unexpected token guide lists the usual causes.
  • The file is huge. Editors can freeze on files of hundreds of megabytes. The formatter here loads files up to 100 MB, and for larger ones a command-line tool is a better choice.
  • It has many lines, each a separate object. That is JSON Lines, not a single JSON document. The JSON to CSV converter reads it directly.

Quick guide

You want toUse
Read or check itJSON Formatter or a code editor
Work with it in a spreadsheetJSON to CSV or JSON to Excel
Make it smallerJSON Minifier
Use it in a config fileJSON to YAML or JSON to XML