60

I have very large JSON file which is of several GB. I am looking for any efficient JSON viewer. In which we are also able to view JSON in tree format.

I understand such huge file can't be loaded in one go. I wonder is there any software to view JSON in parts (i.e opening ~10k records) at a time?

9
  • 1
    You could (not sure) use MongoDb to store it an d query it
    – X.Otano
    Nov 2, 2015 at 7:05
  • 4
    How large is it and how much RAM do you have? I'm currently working on Huge JSON viewer Jul 15, 2016 at 22:13
  • 2
    Main problem is when the JSON is all on a single line. Use jq to format it first, then open that: jq . < bigline.json > formatted.json. For me, this solved the problem in most editors.
    – Rich Remer
    Jan 19, 2020 at 5:04
  • 4
    Have you tried viewer.dadroit.com is fast and light.
    – nahog
    Jun 9, 2020 at 16:18
  • 3
    Dadroit is a brilliant tool that treats JSON as a data format, not plain text. It provides you with a quick outline view with the help of tree representation of JSON data from root to last nodes. You can browse and query JSON like an enterprise DBMS. You can get it here dadroit.com Nov 24, 2021 at 11:53

3 Answers 3

21

If you're using Mac, try Hex Fiend. Loads large files super fast. Just disable the hex view and you'll get a regular-ish editor.

5
  • 5
    Thanks! Works super well on 800MB file :) Jun 19, 2018 at 10:06
  • 5
    This should be marked as the answer. Works well on 500MB files. Any way to get Hex Fiend to format the JSON?
    – Badrush
    Sep 25, 2019 at 17:33
  • 1
    This was an awesome answer. Would never have thought of using Hex Fiend for this.
    – Kirkman14
    Jan 16, 2020 at 19:35
  • Opened up my 25GB JSON file in mere milliseconds. Oct 25, 2022 at 22:42
  • 2
    @Badrush good that it isn't marked as answer as mac only!
    – barlop
    Dec 29, 2022 at 12:25
20

You can try Sublime. Its quite good in handling large files:

10
  • 24
    I haven't done much empirical testing, but in my experience, Sublime seems to struggle with minified files. It handles large files with many reasonably short lines passably, but it chokes on a 50 MB JSON one-liner. Dec 2, 2016 at 10:08
  • 10
    In my experience, Sublime has to chug for a while before it can finally open large files. I just opened a 50MB JSON file in Sublime and it took several minutes before the file appeared in the editor.
    – Bob Black
    Mar 20, 2017 at 19:21
  • 21
    been sitting here for 20 or 25 minutes waiting for sublime to open this geoJSON file.... 120MB
    – Gukki5
    Aug 4, 2017 at 6:58
  • 3
    Dadroit is a brilliant tool that treats JSON as a data format, not plain text. It provides you with a quick outline view with the help of tree representation of JSON data from root to last nodes. You can browse and query JSON like an enterprise DBMS. You can get it here dadroit.com Nov 24, 2021 at 11:53
  • 1
    Try this github.com/WelliSolutions/HugeJsonViewer Dec 13, 2021 at 20:16
4

I've used JSONViewer to view large files (over 100Mb). It's not all that fast at loading them, but it gets there eventually.

3
  • 3
    Unpopular solution but Works like charm : Try out nano if you are using Linux. It will read only that part of the file which is displayed on the terminal. Loads super fast!! and does not blow up memory requirement. If you are good at python just use file.read() option to parse only that part you need Unpopular solution but Works like charm : Try out nano if you are using Linux. It will read only that part of the file which is displayed on the terminal. Loads super fast!! and does not blow up memory requirement. If you are good at python just use file.read() option to parse only
    – Trect
    Nov 5, 2019 at 15:54
  • 6
    Just tried it and it is decades away from "fast". Honestly, after 15 minutes of waiting I believe it entirely froze to death. My test scenario: HP Elitebook 745 G2 with Win 10 Pro and 4GB DDR3, SSD HDD (1TB) - Notepad++ opened it way faster. Everything was shown in one row only but it did the job in my case as I only needed to search for a contained string. Maybe this comment saves somebody some time.
    – Chris S.
    Jul 1, 2020 at 0:35
  • Link not working anymore, where it can be found?
    – BRap
    Apr 20 at 8:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.