It's safe for a random download or a suspicious email attachment you don't own. It isn't safe for anything confidential: a contract, a payslip, an internal spreadsheet, a client's files. VirusTotal's terms say an uploaded file is shared with its antivirus and security partners, and its paid tiers can download submitted files. The safer habit is to search by the file's hash first, which tells VirusTotal nothing about the contents. Below is what happens to each kind of submission, how to get a hash on any computer, and what to do if you've already uploaded something private.
VirusTotal runs the file through dozens of antivirus engines and other scanners, then keeps it. That's the whole point of the service: it's a shared threat library, and every upload adds to it. The terms that VirusTotal published for years (dated January 27, 2021, and now archived on its docs site as the "historic" terms, after the service moved under Google Cloud's security terms) are blunt about it. A submitted sample "is immediately shared for review by the Service's Partners," and users agree to "only upload samples that you wish to publicly share."
The same terms ask you not to knowingly submit files containing "confidential or commercially sensitive data or personal data of any individual" without permission. In other words, VirusTotal itself tells you not to upload private documents. The API documentation also lists a "Download a file" endpoint for paid customers, so a file you upload can end up on a security analyst's machine at a company you've never heard of.
None of that is sinister. Malware researchers need real samples. It just means the upload button is a publish button, not a private scan.
| What you submit | What VirusTotal gets | Who else may see it | Good for |
|---|---|---|---|
| A hash search (SHA-256, SHA-1 or MD5) | A 64-character fingerprint, not the file | Nothing about the contents | Any file, including private ones |
| A file upload | The whole file, kept in its corpus | Security partners; paid users can download it | Unknown downloads, attachments you didn't create |
| A URL scan | The full link, including any query string | Partners, and the URL shows up in its reports | Public links you're unsure about |
| Private Scanning (paid) | The file, kept briefly (24 hours by default) | Only your organization's VirusTotal group | Sensitive files a company must check |
URL scans catch people out. A password-reset link, a shared-document link or a link with a login token in it is effectively a key. Scanning it hands that key to a public database. Strip anything after the ? before you scan, or don't scan links that came to you personally.
Search for its hash. A SHA-256 hash is a fixed-length fingerprint of the file's exact bytes, and VirusTotal's search box accepts one directly. If anyone has uploaded the same file before, you'll see the full report without sending anything. If the hash is unknown, you've learned something too: the file is either new, rare or unique to you.
Every major operating system can make the hash for you, no install needed:
| System | Command | Notes |
|---|---|---|
| Windows (PowerShell) | Get-FileHash .\file.exe | SHA-256 is the default |
| Windows (Command Prompt) | certutil -hashfile file.exe SHA256 | Works on older versions too |
| macOS | shasum -a 256 file.dmg | Run it in Terminal |
| Linux | sha256sum file.tar.gz | Part of coreutils |
For text files such as scripts, config files or a pasted snippet, our Hash Generator works too, and it runs in your browser. Be aware that it reads files as text, so for programs, archives, PDFs and Office files the command line is the reliable route. A hash computed from the wrong bytes won't match anything.
The free public API follows the same idea. It only allows searching by hash, at four requests a minute, and it's for non-commercial use.
A simple test: would you be fine emailing this file to a stranger at an antivirus company? If not, don't upload it. That rules out:
Office documents and PDFs also carry metadata that says more than you'd expect: author names, company names, edit history, sometimes file paths from your computer. If you have to share a document with anyone outside, run it through the Document Metadata Remover first. For photos, the Image Metadata Remover strips GPS and camera data. Both work on your device.
Hash search first. If that finds a known-malicious match, you have your answer. If it finds nothing, you've got a few choices that don't involve publishing the file:
Assume the file has been shared and act on what's inside it. VirusTotal's archived terms say contributed samples "generally will not be removed" unless they're illegal or violate someone's rights, so deletion isn't something you can count on. You can still contact VirusTotal and ask, especially for personal data, where privacy laws may give you a right to request removal.
Then deal with the exposure itself. Change any passwords or keys in the file. Tell your employer or client if their data was in it. If it held someone's personal information, check whether your organization has a breach-reporting duty. For the broader question of handing documents to online tools, our guide on whether it's safe to upload PDFs online covers the same reasoning for converters and editors.
VirusTotal is a great tool used the right way. Search by hash for anything private, upload only files you didn't create and wouldn't mind being public, and clean the query string off links before scanning them. For more tools that keep files on your own device, see the best free privacy tools.
Yes. Its terms say uploaded samples are shared with its security partners, and paid users can download files from the corpus through the API. Treat an upload as publishing the file.
Yes. Make a SHA-256 hash of the file (Get-FileHash on Windows, shasum -a 256 on macOS, sha256sum on Linux) and paste it into the VirusTotal search box. If the file has been seen before, you get the full report without sending the file.
Not reliably. VirusTotal's archived terms say contributed samples generally aren't removed unless they're illegal or violate someone's rights. You can ask, but plan as if the file stays shared.
No. The full URL, including any tokens in the query string, goes into its reports. Remove everything after the question mark, or skip scanning personal links such as password resets and shared-document links.
A paid service where files stay inside your organization's VirusTotal group and are deleted after a retention period, 24 hours by default. Private results don't include the antivirus verdicts the public service shows.