Your files never leave your device. All processing happens locally in your browser.
Can a website securely shred or permanently delete a file from my computer?
No — and any web tool that claims otherwise is not being honest. A web page runs in a sandbox with no access to your operating system or raw disk, so it cannot reach a file already saved on your drive. What this Secure File Shredder genuinely does, 100% in your browser, is <strong>overwrite the bytes of a file copy you drop here</strong> with cryptographically random data (<code>crypto.getRandomValues</code>) for a chosen number of passes and let you download the destroyed copy, and <strong>wipe the data this site stores in your browser</strong> (localStorage, sessionStorage, IndexedDB, Cache Storage). To erase real disk files, use OS tools and full-disk encryption.
Browsers are sandboxed — no web tool can erase a file already on your disk
Overwrites a copy in memory with CSPRNG random / 0x00 / 0xFF passes, then downloads it
One-click wipe of this origin’s localStorage, sessionStorage, IndexedDB and Cache Storage
NIST SP 800-88: a single overwrite is sufficient on modern drives; multi-pass is legacy
The real fix for disk files: full-disk encryption (BitLocker / FileVault / LUKS) + OS tools
What is
Secure file deletion (data sanitization)
Secure file deletion means destroying data so it cannot be recovered, typically by overwriting the storage or by cryptographically erasing the key that unlocks an encrypted drive. Because a browser cannot access the filesystem or raw storage, this tool implements the browser-possible subset: overwriting a file’s bytes in memory with CSPRNG data and clearing the site’s own browser storage. True disk sanitization is defined by NIST SP 800-88 (Clear / Purge / Destroy) and is done with OS-level tools, drive Secure Erase, or full-disk encryption — not a web page.
No. It overwrites a copy in memory and downloads it; the original file on your disk is untouched.
A web page cannot reach your filesystem or raw disk sectors, so it can never delete or overwrite a file that is already saved on your drive. This tool reads a file you drop into memory, overwrites those in-memory bytes with cryptographically random data, and gives you the destroyed copy to download — useful for destroying the CONTENT of a copy you control before re-saving. The original, plus any backups, thumbnails, temp files, cloud syncs or previous-version snapshots, remain exactly where they were. To erase real disk files use OS tools such as <code>cipher /w</code> or SDelete on Windows, <code>shred</code> or <code>srm</code> on Linux/macOS, or your drive’s Secure Erase.
On modern drives one pass is enough. NIST SP 800-88 supersedes the old 3- and 7-pass DoD rules.
The multi-pass idea (the famous DoD 5220.22-M 3-pass and 7-pass sequences) was designed for 1990s magnetic hard drives. Modern guidance, NIST SP 800-88 Rev. 2, states that a single overwrite pass leaves no recoverable data on current media — extra passes just take longer without improving erasure, and on SSD/flash they mostly waste write cycles. This tool offers 1 pass (random), a 3-pass and 7-pass DoD-style sequence, and a custom count with zeros / ones / random patterns, mainly so you can match a convention you have been asked for; each method still ends on a random pass so the file finishes as high-entropy data.
Wear levelling makes the SSD write your “overwrite” to a different physical block, leaving the original data behind.
SSDs, USB sticks and phone storage use wear levelling and over-provisioning to spread writes evenly and prolong the drive’s life. When you overwrite a file, the controller often writes the new data to a fresh block and simply marks the old one for later erasure, so the original bytes can survive in spare cells that software cannot address. That is why overwriting is unreliable on flash. The robust answer is cryptographic erase: keep the whole drive encrypted (full-disk encryption) from day one, and destroying or replacing the encryption key instantly renders all of it unreadable.
This origin’s localStorage, sessionStorage, IndexedDB and Cache Storage — not cookies, other sites, or your disk.
The wipe scans and then clears the data this specific website stores in your browser: localStorage and sessionStorage keys, IndexedDB databases, and Cache Storage (the PWA/service-worker caches). It runs entirely on your device with a confirm step. It cannot remove HTTP-only cookies, the browser’s HTTP disk cache, data belonging to other sites, or anything outside the browser, and IndexedDB deletion can be blocked if you have another tab of this site open. Note that it also clears this tool’s own saved preferences (theme, cookie consent). To clear cookies and all site data, use your browser’s Site Settings / Clear Data control.
Detailed Explanation
📖How It Works
What This Tool Really Does
The Secure File Shredder is an honest, 100% client-side privacy utility. It does NOT — and technically cannot — erase a file that is already saved on your disk, because a web page runs in a browser sandbox with no access to the operating system or raw storage. Instead it does the two things a browser genuinely can: (1) it reads a file you drop into memory and overwrites every byte with cryptographically random data from crypto.getRandomValues (and optional 0x00 / 0xFF fill passes), then lets you download the destroyed copy; and (2) it scans and one-click wipes the data this website stores in your browser — localStorage, sessionStorage, IndexedDB and Cache Storage.
A sandboxed browser cannot reach or delete files on your disk
Overwrites a file COPY in memory with CSPRNG random / 0x00 / 0xFF passes
Downloads the destroyed copy; the original on disk is untouched
Wipes this origin’s localStorage, sessionStorage, IndexedDB and Cache Storage
Randomness is crypto.getRandomValues (OS CSPRNG) — never Math.random
⚙️Methodology
How the Overwrite and Wipe Work
A pure engine (fileShredderEngine.ts) reads the File into a Uint8Array and overwrites it pass by pass in 64 KiB chunks — the maximum crypto.getRandomValues accepts per call — yielding to the event loop between chunks so a live progress bar can render each pass. Random passes call crypto.getRandomValues; zero and one passes fill 0x00 / 0xFF. Every method ends on a random pass so the final bytes are high-entropy, then the buffer is wrapped as a Blob and downloaded. The browser-data wipe uses navigator.storage.estimate() plus a non-destructive scan to show live key counts and byte sizes, then clears Cache Storage (caches.delete), IndexedDB (indexedDB.deleteDatabase), sessionStorage.clear() and localStorage.clear() behind a two-step confirm.
Overwrites in 64 KiB chunks (the getRandomValues 65 536-byte cap)
Random / 0x00 / 0xFF passes; every method ends on a random pass
Non-blocking: yields between chunks so progress renders live
Storage is scanned read-only first (navigator.storage.estimate + enumeration)
🔧Technical Details
Standards: NIST SP 800-88 vs DoD 5220.22-M
The tool follows current data-sanitization guidance honestly. NIST SP 800-88 (Media Sanitization) is the modern standard and states that a single overwrite pass leaves no recoverable data on current drives; its “Purge” tier favours the drive’s built-in Secure Erase or cryptographic erase over repeated overwrites. The famous DoD 5220.22-M 3-pass and 7-pass (ECE) sequences were built for 1990s magnetic media and are now superseded — the DoD itself defers to NIST 800-88. The tool therefore offers 1 pass as the sensible default and exposes 3-/7-/custom-pass options mainly for compatibility with conventions people are still asked to follow, with a plain note that more passes do not improve erasure on modern drives.
NIST SP 800-88: one overwrite pass is sufficient on modern media
DoD 5220.22-M (3-pass, 7-pass ECE) is legacy and superseded
Multi-pass overwriting is largely theatre on today’s drives
On SSDs, extra passes just consume finite write cycles
⚠️Limitations
Honest Limitations
This tool cannot securely erase files already on your disk — it overwrites a copy in memory and downloads it, leaving the original file plus any backups, thumbnails, temp copies, cloud syncs, previous-version snapshots and search indexes untouched. On SSD/flash storage, wear levelling and over-provisioning mean even OS-level overwrites are unreliable, because the controller may write elsewhere and leave the original data in spare cells. The browser-data wipe clears only this origin’s localStorage, sessionStorage, IndexedDB and Cache Storage; it cannot remove HTTP-only cookies, the browser’s HTTP disk cache, other sites’ data, or anything outside the browser, and IndexedDB deletion can be blocked if another tab of this site is open. Firefox does not expose the IndexedDB database list, so those must be cleared from browser settings. Treat this as a privacy aid and teaching tool — for high-stakes erasure use OS tools plus full-disk encryption.
Cannot touch the original disk file, backups, temp copies or cloud syncs
Wipe cannot remove HTTP-only cookies or the browser’s HTTP cache
IndexedDB deletion can be blocked by another open tab of this site
The real fix for disk files: full-disk encryption + OS tools
🔒Privacy & Security
Private by Design
Everything runs on your device. The file you drop is read into memory and overwritten locally — it is never uploaded, and there is no server, no CDN and no telemetry in the path. The overwrite randomness comes from crypto.getRandomValues, the browser’s cryptographically secure generator seeded by the operating system, never Math.random. The browser-data scan and wipe touch only this origin’s own storage. Nothing is logged or persisted beyond the copy you choose to download; closing the tab discards the file bytes from memory. The tool works offline once cached, supports dark mode and a mobile-first responsive layout, and has no analytics; the only optional network use anywhere on the site is consent-gated ads, which never see your file.
File overwriting runs locally — nothing is uploaded
CSPRNG randomness via crypto.getRandomValues (OS-seeded)
No server, no CDN, no logging, no telemetry, no account
File bytes live only in tab memory and are discarded on close
Works offline once cached; dark-mode and mobile-first
What a browser can and cannot do for secure deletion
Task
This tool (in-browser)
The real solution
Erase a file already on disk
Not possible (sandboxed)
OS tools: cipher /w, SDelete, shred, srm
Destroy the content of a file copy
Yes — overwrite bytes in memory + download
Same, or delete on an encrypted volume
Reliably wipe an SSD / USB
Not possible
Drive Secure Erase / crypto-erase (NIST 800-88)
Clear this site’s browser storage
Yes — localStorage / IDB / Cache Storage
Browser Settings → Clear site data (adds cookies)
Number of overwrite passes
1 / 3 / 7 / custom offered
1 pass suffices on modern drives (NIST 800-88)
A web page cannot access your filesystem or raw disk. This tool overwrites file copies and clears in-browser data locally — nothing is uploaded. For real disk erasure use full-disk encryption plus OS tools. As of July 2026.