16

I understand a Safari webarchive is a single file with the source code and other resources from a web page concatenated into a single file. I found a Macworld article from 2006 describing a program that does just this, but the link to the program is no longer current.

Is there any currently available software that can convert a Safari webarchive file into a more standard format?

7

WebArchiveExtractor

I recommend WebArchiveExtractor. You can drag .webarchive files to this app which will extract the file into its individual files in a folder.

You can customise the output in Preferences, including setting a custom index file name:

WebArchiveExtractor is open source on GitHub

11

Is there any currently available software that can convert a Safari webarchive file into a more standard format?

If you are comfortable with command line, there is a tool textutil on Mac OS for converting webarchive file to txt, html, rtf, rtfd, doc, docx, wordml, or odt.

Example:
textutil -convert html /Users/USERNAME/NAME.webarchive


For converting webarchive file to pdf, try "Wondershare PDF Editor for Mac". http://www.wondershare.com/pdf/how-to-convert-webarchive-to-pdf.html

  • 4
    The textutil command line tool only extracts the top-level html file, and not the CSS or scripts that are also part of the webarchive. (Which is really the whole point of the webarchive.) I have not found a good alternate way to do this from the command line. – Stephen Harrison Aug 24 '15 at 12:57
  • 1
    @Stephen WebArchiveExtractor has an Automator action which can be scripted through the shell. – grg Aug 24 '15 at 13:17
  • Despite the caveats, that's the kind of answer I was looking for. A GUI bases solution is quite useless when you would like to convert hundreds of webarchives on a server. – Seven Jan 12 '16 at 7:42
  • This doesn't even extract the original HTML file, but converts it. It's really more like opening an HTML file in TextEdit and reexporting it. – sam Jul 4 '17 at 15:50
2

There is actually a software. The software is almost as the same as the one in the link you provided.

https://www.macupdate.com/app/mac/20643/webarchive-folderizer

Mac OS X 10.2 Or Later : Intel / PPC

  • 1
    It worked great for me on El Capitan. – Andrew Swift Nov 23 '15 at 13:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .