129

I love the network debugger, that being said, what programs are out there that let me step forward and backward through multiple 'hars' so I can replay them? if the 'hars' are saved with content, can the replay handle that as well?

right now I just read through in textpad, but if I have to present any of my findings a nice 'har player' could greatly help non-technical folk.

DefyGravity
  • 5,001
  • 5
  • 30
  • 43
  • so far, I have a ['one at a time' viewer](http://www.softwareishard.com/har/viewer/) – DefyGravity Apr 24 '13 at 18:01
  • 9
    This question on superuser is essentially the same and has decent answers: http://superuser.com/questions/360992/what-format-does-google-chrome-developer-tools-save-data-as – David Fraser Jul 21 '13 at 14:05

12 Answers12

96

There is an HAR Viewer developed by Jan Odvarko that you can use. You either use the online version at

Or download the source-code at https://github.com/janodvarko/harviewer.

EDIT: Chrome 62 DevTools include HAR import functionality. https://developers.google.com/web/updates/2017/08/devtools-release-notes#har-imports

Paul Grime
  • 14,517
  • 4
  • 31
  • 55
Nizar
  • 1,189
  • 9
  • 8
  • 1
    FWIW this doesn't seem to handle the "content" when you use "Save as HAR with content". Other than that, it's a decent HAR viewer. – Doktor J Jul 14 '14 at 14:53
  • haven't gotten it to work yet on a 'save all as har' option from the chrome debugger. However, i'll keep checking back with it. – DefyGravity Jul 24 '14 at 13:45
  • just got it to work today from a pretty heavy website. nice application – DefyGravity Sep 08 '14 at 16:32
  • 9
    WARNING: As great as "online" HAR viewer sounds, I would be a bit concerned with what that server is doing with the HAR - is it saving it? Analyzing it? HAR may include sensitive personal data.. I personally wouldn't upload a HAR to somebody else's server.. now if it was sent to me by a client I suppose that would be different story.. oh wait, no it would not. – nothingisnecessary Nov 22 '17 at 16:19
  • @nothingisnecessary - HAR Viewer runs in the browser only, there is no server-side component that ever 'sees' the HAR file. – Paul Grime Jul 09 '18 at 14:21
  • Jon Odvarko's Harviewer was very easy to build from source (once you install NPM) - and IMHO it's the best way to view HARs. The built-in Chrome functionality only presents one of the views available in Harviewer. Plus, it requires that you run a proprietary browser. – Lambart Feb 18 '19 at 08:00
72

Chrome Dev Tool's "Network" tool now allows you to import HAR files by drag-and-dropping into the window.

Xchai
  • 963
  • 7
  • 10
24

There are a couple of online, offline tools how to do this:

But the one that I liked the most, is a browser extension (tried it in chrome, hopefully it works in other browsers). After installation, it appears in your apps as HAR viewer. Then you can upload you HAR file and see something like this:

enter image description here

Salvador Dali
  • 182,715
  • 129
  • 638
  • 708
19

The Most Reliable way to replay har file is using a free tool like Fiddler, the tool is always free and can be downloaded quickly. The sites for the opening har file are all buggy and cannot open large files. Fiddler is available for all platforms.

https://www.telerik.com/download/fiddler

Go to File Menu -> Import Sessions...

Open Fiddler

Select the "HTTPArchive" Option

Select the Http Archieve option

Browse to your HAR file

enter image description here

The HAR file will open and replay on the fiddler window.

C B
  • 1,667
  • 11
  • 12
  • 1
    I found that exporting it as raw files and then loading the html file allowed me to replay console logs in any browser. – mikeytown2 Nov 29 '17 at 23:24
  • I like using fiddler because I can replay a particular request from the har file (changing tokens ofc) to see its effects. I personally have been using Fiddler for a long time and as this thread has been citing a lot of tools that all work in different cases, it finally falls down to personal comfort. – C B Nov 30 '17 at 00:32
  • I too liked this answer the most; For a very large HAR files, Fiddler allowed me to filter as well as delete excess messages (I also have been using Fiddler for quite some times so it felt most comfortable on its abilities including replay) – HidekiAI Oct 22 '19 at 16:14
12

Chrome now supports loading HAR files. Open Chrome, Press F12, Click on the Network Tab. Drag and drop the .har file DONE !

C B
  • 1,667
  • 11
  • 12
8

Edit: Harhar is now open source. I have updated the URL below.

If you use an Avalanche load generator, you can use Harhar to replay a HAR file at very high load: https://acastaner.github.io/harhar/

This tool handles the "content" you use when you "Save as HAR with content."

Astaar
  • 4,278
  • 7
  • 36
  • 55
  • 2
    I know some months have passed since the OP asked, but this one should be considered as the right answer, as the mentioned tool can really "play" a HAR file. Very nice suggestion, @Astaar. – Charles Roberto Canato Jul 07 '15 at 14:03
  • It's written entirely in C#. "Works on Windows and Linux (Mono)" – Trindaz Feb 11 '17 at 16:05
  • Aside from totally agreeing with Astaar and Charles, I've just found another one: https://github.com/Stuk/server-replay – quetzalcoatl Mar 01 '18 at 14:31
4

Hardiff.com is pretty useful tool. It allows you to compare one or more .har files.

Zander
  • 1,725
  • 2
  • 23
  • 46
4
  1. Open Chrome & click F12
  2. Click Network
  3. Drag and drop the har file in the chrome network tab.

enter image description here

S Krishna
  • 913
  • 10
  • 8
4

If I am not late....

For Firefox, one can import the same har file from Network tab.Firefox Network tab with import HAR file

Sanjay Maurya
  • 313
  • 1
  • 2
  • 7
2

HAR import works seamlessly in Firefox: Open Web Developer -> Network Tab -> HAR -> Import ... (Top-right corner of web developer tool)

HAR Import Option

1

Open chrome browser. right click anywhere on a page > inspect elements > go to network tab > drag and drop the .har file You should see the logs.

Arjun Thakur
  • 171
  • 2
  • 13
1

Drag and drop is best solution. I am just showing another way to import by clicking the HAR import icon: enter image description here

Barani r
  • 1,403
  • 1
  • 16
  • 20