The little brown cardboard-box badge in the corner of a file icon means the file’s contents are not stored on your PC. It is Windows’ marker for a file whose data lives somewhere else and gets fetched when you open it — on most home PCs, a OneDrive file in the “online-only” state with Files On-Demand switched on. Nothing is broken, nothing is corrupted, and the file will open normally as long as you are online.
To make it go away for a specific file or folder, make the file locally available. Microsoft documents the command form:
attrib +p "C:\Users\you\OneDrive\Documents\report.docx"In File Explorer the equivalent is right-clicking the file or the OneDrive folder and choosing Always keep on this device. That is the fix accepted by the person who raised this on Microsoft’s own Q&A forum, and endorsed by well over a thousand others there.
Table of Contents
Correcting the earlier version of this page
An earlier version of this article described three different “brown box” icons — a box with a white border, a box with a green check, and a box with a green circle and white check — and assigned each a meaning. That was wrong, and internally contradictory: two of the three descriptions claimed the file was not stored on the device, which cannot both be a distinct state. It also treated the box as part of OneDrive’s own badge set. It is not. The box is a Windows shell overlay tied to a file attribute, and OneDrive is only the most common thing that sets it.
That distinction matters, because it explains the cases the old version could not: people who see the box on a Dropbox, Egnyte or NAS-synced folder, and people who see it on a work machine running Azure File Sync where OneDrive is not involved at all.
What the badge actually is
Microsoft’s developer documentation describes icon overlays as “small images placed at the lower-left corner of the icon that represents a Shell object in Windows Explorer or on the desktop” — which is exactly where this one appears.
The attribute behind it is FILE_ATTRIBUTE_OFFLINE. Microsoft’s definition: “The data of a file is not available immediately. This attribute indicates that the file data is physically moved to offline storage.” It dates back to tape-based hierarchical storage management, and Microsoft explicitly warns that “applications should not arbitrarily change this attribute.”
Cloud sync tools reuse the same mechanism, which is why the badge shows up on ordinary home PCs. Microsoft’s Azure File Sync documentation states it plainly for its own product: “A tiered file has both the offline attribute and the FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS attribute set in NTFS so that third-party applications can securely identify tiered files.”
The reason this looked new to so many people is the artwork changed. On Windows 10 and earlier the offline overlay was drawn as a grey X; on Windows 11 it is drawn as the cardboard box. The underlying attribute did not change. Flag on this specific point: the grey-X-to-box change is described by third-party storage vendors and community answers, not by a Microsoft page I was able to find — treat the mechanism as documented and the artwork history as well-corroborated but unofficial.
Confirming it yourself
You do not have to guess which of these applies. Microsoft documents the three Files On-Demand states and their attribute letters, and attrib with no switches reports the current state of a file:
| Files On-Demand state | Attribute | Command to set it |
|---|---|---|
| Always available | Pinned | attrib +p <path> |
| Locally available | Clearpin | attrib -p <path> |
| Online-only | Unpinned | attrib +u <path> |
Run attrib against a boxed file. If it reports the unpinned or offline state, the badge is doing its job and the diagnosis is settled. If it reports nothing of the sort, the badge is stale artwork left in the icon cache rather than a live state, and signing out and back in — or restarting Explorer — is the proportionate next step. Microsoft’s note on the same page adds one prerequisite worth checking if the Files On-Demand option is missing from OneDrive’s settings entirely: the “Windows Cloud Files Filter Driver” service must have its start type set to 2, at [HKLM\SYSTEM\CurrentControlSet\Services\CldFlt].
To stop the badges appearing at all, turn Files On-Demand off in OneDrive’s settings. That downloads everything in your OneDrive to the PC, so check you have the disk space first — the feature exists precisely to avoid that.
How this was checked
I do not have a Windows machine, so none of the above was reproduced on hardware. Every claim about attributes, states and commands comes from Microsoft’s published documentation, quoted above; the icon-artwork history and the “Always keep on this device” fix come from Microsoft’s Q&A forum and third-party vendor support pages, and are labelled as such. Nothing here is a screenshot or a terminal transcript I did not produce.
