.json
JSON file: what it is and how to open it
A JSON file is structured data saved as plain text: names and values in braces and brackets that programs read and write. Drop one here to browse it as a tree you can expand and search.
Drop your JSON file here
Opens on this device. Nothing is uploaded. Any other file works too.
What is a JSON file?
JSON (JavaScript Object Notation) is a text format for structured data. Web services use it to send data, apps keep settings in it, and software projects keep files such as package.json and tsconfig.json. A .json file you download is usually data one program wrote for another to read.
Douglas Crockford described it at json.org and in RFC 4627 (2006), basing it on a subset of JavaScript. It is standardized as ECMA-404, first published in 2013, and as RFC 8259 from 2017.
The format is strict, which explains most problems. Names need double quotes, comments and trailing commas are not allowed, and one misplaced character makes the whole file unreadable to a program. Files exchanged between systems must be UTF-8.
What is inside
A JSON file holds one value, usually an object in braces with named entries, or an array in brackets with a list. A value is text in double quotes, a number, true, false or null, or another object or array nested inside, which builds a tree. There is no date type, so dates are written as text.
Spaces and line breaks between values do not matter, so the same data can be indented for people or minified into one long line. The format sets no limit on numbers, but RFC 8259 warns that integers larger than 9,007,199,254,740,991 may not survive between programs, so long IDs are safer as text. JSON Lines (.jsonl) is a relative that holds one value per line.
{an object starts "name": "Ada Okafor",a name and a text value "id": "1453871236540928000",a long ID kept as text "verified": true,true, false or null "joined": "2026-03-14",dates are written as text "address": {an object inside the object "city": "Lagos" }, "tags": ["beta", "mobile"],an array: an ordered list "score": 98.5no comma after the last entry}How to open a JSON file
Windows
- NotepadBuilt in. Right-click the file and choose Open with, Notepad to read or edit the text.
- Visual Studio CodeFree. Underlines syntax errors and re-indents the file with Format Document (Shift+Alt+F).
- Universal File Opener for WindowsOursReads JSON with syntax colors and edits it with find and replace, undo and a history of versions kept on the PC. Format document re-indents a minified file.
Mac
- Visual Studio CodeFree. Checks the syntax and formats the file with Shift+Option+F.
- TextEditBuilt in. Opens the file as plain text for reading and small edits.
iPhone and iPad
- FilesBuilt in. Tap the file for a Quick Look preview of its text.
Android
- Universal File OpenerOursReads and edits JSON offline. Format JSON pretty-prints a minified file and can restore it; Tree view folds objects and arrays. The encoding is kept on save.
In a browser
- FirefoxFree. Shows a .json file you open in it in a built-in viewer: a collapsible tree, a filter, the raw data and a pretty-printed view.
- Universal File OpenerOursDrop the file on this page to browse it as a tree, see repeated names flagged, and save a formatted, minified or CSV copy. Nothing is uploaded.
Won’t open?
A program reports “unexpected character” or a similar syntax error
The file breaks a JSON rule: a comma after the last entry, single quotes, a comment, or a byte order mark at the very start. VS Code underlines the spot; fix it and save the file as UTF-8.
The whole file is one long line
It was minified to save space, and the data is fine. Use Format Document in VS Code or Format JSON in our Android app, or drop it here to read it as a tree.
Excel does not show it as a table
Excel imports JSON rather than opening it: choose Data, Get Data, From File, From JSON and pick the file. Power Query turns the data into a table you can load into a sheet.
Long numbers lose their last digits
Excel keeps 15 significant digits, and many programs keep integers exact only up to 9,007,199,254,740,991. Keep long IDs as text in quotes, and do not save such files again from a spreadsheet.
A settings file with comments is called invalid
Some apps use JSON with Comments, a looser variant that VS Code uses for its settings.json. A strict JSON reader rejects the comments, so keep them only in files the app documents as allowing them.
Convert a JSON file
- To Excel tableIn Excel, choose Data, Get Data, From File, From JSON and pick the file. Power Query shows the data as a table; load it into a sheet and save as .xlsx or .csv.
- To indented, readable JSONVS Code: Format Document (Shift+Alt+F, or Shift+Option+F on a Mac). Our Android app: Format JSON in the More menu. Our Windows app: Format document.
JSON files in our apps
Open JSON in UFO on Android or Windows to read it with syntax colors, pretty-print it and edit the text offline; Android adds a tree view. Supported text saves are free.
All Android tools and limits for JSON files
- One-tap pretty-print for minified JSON, reversible to the original bytes.
- Choose Tree view in the More menu to expand or collapse objects and arrays.
- Syntax highlighting, search with match counts, find and replace, go-to-line.
- Edit the source with undo and redo history that remains available after saving.
- Encoding is detected (UTF-8/16, BOMs) and preserved on save.
Limits
- JSON schema validation is unavailable. Check saved data with the application that uses it.
Walkthrough: Edit text, code and data on Android