Privacy
The files you open and the code you paste never leave your device. The site counts visits and measures whether the viewer works with Google Analytics, which never receives your files, your code or their names. There is no session recording.
Updated
Your files and code
The files you open and the code you paste or type are read by your browser on your device. They are never sent to us, to Google or to anyone else. Nobody receives their contents or their names.
Three things are your choice. If you choose "Load remote files", your browser requests the images, stylesheets, fonts and media the page names from the servers it names, and those servers can see your IP address. If you also choose "Run scripts", the page's own scripts can contact the internet, as they could in any browser tab, and can send what they read on the page. If you choose "Open link" on a link in the page, that address opens in a new tab. Nothing is requested from those servers unless you choose one of these.
Analytics
We use one analytics service, Google Analytics 4 (Google LLC), to see how many people visit, which pages they read and whether the viewer works for them. It records the pages you view and how far you scroll, your device and browser type, and an approximate location derived from your IP address.
We do not use any session recording, replay or heatmap service on this site. A recorder runs inside the page and could read the frame that shows your document, so an HTML viewer should not have one.
The viewer reports these events, and nothing else about your files:
| When | What is sent |
|---|---|
| You open a file or paste code | How it arrived (chosen, dropped, pasted, the sample, or typed and previewed), its kind (HTML, MHTML, ZIP or folder), its size as a range (under 1 MB, 1 to 10 MB, or 10 MB or more), whether it has scripts, and whether it names any web addresses |
| You turn scripts on or off | On or off |
| You turn remote files on or off | On or off |
| You use a control or open a link | Which one: print, download, copy, full screen, width, layout, page (another page of a folder or ZIP) or link (Open link). Never the width, layout or page chosen, and never the link's address |
| A file or pasted code cannot be opened | The reason as a code (empty, not HTML, too large, damaged archive, no page found), and which limit was exceeded when a file is too large |
| The viewer's own code fails | The type of error and the script file and line where it happened, never the error message |
No event contains a file, a file name, code, a link address, an exact size, an error message or anything else read from inside a file. An automated test checks this before each release.
Cookies and your choice
Google Analytics sets cookies (_ga and _ga_*). If your browser's time zone is in Europe, it does not load until you choose Accept in the cookie banner. Elsewhere it loads by default. You can change your choice at any time with "Cookie settings" at the bottom of any page. Choosing Reject stops Google Analytics, removes its cookies and reloads the page.
Google Analytics event data is kept for 14 months. We have not enabled advertising features. See Google's privacy policy for how Google processes data.
Server logs
Our hosting provider, Vercel, keeps standard server logs of page requests (IP address, time, the address requested and the browser's user-agent string), as every web host does. These logs never contain your files or your code.
What is stored in your browser
Your cookie choice and your layout and width choices in the viewer are saved in your browser, so they are remembered on your next visit. A copy of the site's own pages and scripts is cached so the viewer works offline. Clearing this site's data in your browser removes them.
No file, code or file name is stored. They are held in the page's memory and are gone when you close or reload the tab.
Legal basis
Where UK or European data protection law applies, analytics cookies are set only with your consent, given through the cookie banner. Elsewhere we rely on our legitimate interest in understanding how the site is used, with the same "Cookie settings" control to object. Server logs are kept under our legitimate interest in running and securing the site.
Who we are
htmlviewer.app is made by Taro Schenker and published by Known by One, LLC (United States). Questions: contact@knownbyone.com.