SD Card and USB Drive Capacity Checker
Pick a folder on the drive, write numbered test files of checkable data, re-plug, read them back to find fake capacity or bad areas, then delete the files.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Back up the drive
Copy anything you need off it, ideally format it.
- 2Set the test
Enter the advertised size and choose to fill the drive.
- 3Write
Pick the drive folder; test files are written chunk by chunk.
- 4Re-plug
Eject the drive safely and insert it again.
- 5Verify
Every byte is read back and checked against its expected value.
- 6Read the verdict
Real capacity, speeds and a log; test files are deleted.
Sobre aquesta eina
Counterfeit memory cards and USB sticks are everywhere on marketplaces. A "2 TB" stick for a few pounds usually holds 32 or 64 GB, and its firmware is rigged to report the larger size. The operating system happily shows 2 TB free, and you only find out when photos copied after the real limit turn out to be broken or empty. The only reliable test is to fill the drive with data you can check, then read every byte back. Desktop programs such as H2testw and F3 do this; this page does the same job inside the browser, with no download. It uses the File System Access API, available in Chrome, Edge, Opera and other Chromium browsers on computers. You choose a folder on the drive and the tool creates one new folder in it named shobfree-capacity-test, then writes numbered files of 1 GB (or a size you choose) until the drive is full or reaches the amount you set. Every 4 MB chunk carries a small header with a run number, file number and chunk number, followed by pseudo-random data generated from those numbers, so the page can recreate exactly what should be there without storing a copy. After writing, the best practice is to eject the drive safely, plug it back in and press Verify after re-plug. That forces the computer to read from the drive itself instead of a copy still in memory. The page reads every chunk, compares it byte by byte, and sorts problems into blank chunks (all zeros or all FF), overwritten chunks holding another chunk's data, which is the signature of a drive that wraps writes round to the start, and other damage. The result gives a verdict, the good and bad amounts, the approximate real capacity, and the average write and read speeds. Finally the test folder is deleted, unless you choose to keep it. The tool never opens, changes or deletes any other file or folder. Each finished test goes into a log with the drive name, speeds and verdict, which you can print or export, useful as evidence when asking a seller for a refund.
How a verdict is reached
| Result | Meaning | |---|---| | Passed | Every byte written was read back correctly | | Fake or failing | More than 2% wrong, or chunks hold other chunks' data | | Errors | A few scattered bad areas: a failing card, reader or cable | | Incomplete | Writing stopped before the planned size, but what was written is good |
Sizes are shown in decimal gigabytes, as drives are sold: a 64 GB card holds about 64,000,000,000 bytes, which Windows shows as 59.6 GB because it counts in binary gibibytes. That difference is normal and not a sign of a fake.
Worked example
The test suite simulates a fake drive that really stores 3 MiB but claims more, and runs an 8 MiB test in four 2 MiB files with 256 KiB chunks. The fake drive wraps writes round, so the last data written overwrites the first. Reading back, about 3.17 MB of chunks verify and 5.22 MB come back wrong, many of them holding the data of later chunks. The verdict is "fake", and the good total, about 3 MiB, matches the drive's true size. A genuine drive of 9 MiB given the same 8 MiB test passes with no errors. On a real 64 GB card the same steps write about 59.6 GiB of files.
Limits
The test only checks free space, so for a full answer start with an empty, freshly formatted drive. Writing a large card takes time: at 20 MB/s, 64 GB needs nearly an hour to write and more to read. Speeds include browser overhead and the temporary file Chrome writes during saving, so they are lower than benchmark tools report. It cannot run on phones, Firefox or Safari, which do not provide the File System Access API. Verifying without re-plugging may read cached data and miss a fake drive.
Exemple resolt
A simulated 3 MiB fake drive given an 8 MiB test returns about 3.17 MB good and 5.22 MB bad, verdict fake.
En resum
- Categoria: Eines del dia a dia
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: WICG File System Access API; method as used by H2testw and F3
Preguntes freqüents
Will this erase my files?
It does not delete or change any existing file. It only creates, reads and deletes its own shobfree-capacity-test folder. On a fake drive, though, writing new data can overwrite older files, so back the drive up first.
Why should I re-plug the drive before verifying?
Your computer keeps recently written data in memory. Reading straight after writing may get that copy rather than what is really stored on the drive. Ejecting and re-inserting the drive clears it, so the check is genuine.
Which browsers work?
Chrome, Edge, Opera, Brave and other Chromium browsers on Windows, macOS, Linux and ChromeOS. Firefox, Safari and mobile browsers do not support writing to a chosen folder.
Why does my 64 GB card show as 59.6 GB?
Card makers use decimal gigabytes (1,000,000,000 bytes) while Windows uses binary units (1,073,741,824 bytes). 64 decimal GB is 59.6 binary GB. That is normal; a fake card is far smaller than expected.
How long does a full test take?
It depends on the drive speed. A card that writes at 20 MB/s and reads at 80 MB/s needs about 53 minutes to write 64 GB and 13 minutes to read it. Keep the tab open and the computer awake.
What file size should I use?
The default 1 GB files work on every file system, including FAT32 with its 4 GB file limit. Larger files do not make the test more accurate.
