.DS_STORE

DS_STORE File

macOS Finder Desktop Services Store (.DS_Store)
Ask a question
QUICK ANSWER

A .DS_Store file is a hidden file the macOS Finder creates automatically in every folder it opens to remember that folder's view settings - icon positions, window size, sort order. There is nothing to open: it holds only internal Finder data, not documents. You usually notice it on a non-Mac, inside a ZIP from a Mac user or on a shared drive. Deleting it is completely safe - your files are unaffected and macOS simply recreates it with default settings.

Developer: Apple Category: Settings Files MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .ICA · .WMZ · .CFG · .LIC

On this page

19k+ extensions indexed
Last reviewed Aug 23, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the DS_STORE file format?

A .DS_Store file stores viewing preferences for the folder in which it resides. It is a hidden file used by macOS, similar to the desktop.ini file used in Microsoft Windows. The file has no conventional extension - its full filename is literally .DS_Store, and the leading dot makes it invisible in Finder and on Unix-like systems. Internally, .DS_Store uses Apple's proprietary "Buddy" allocator binary format, identifiable by the magic signature Bud1 at offset 4.

Folder metadata that can be stored in .DS_Store files includes:

  • Size and position of icons
  • Window position relative to the screen
  • Selected view (icon, list, column, or gallery)
  • Background color or image set for the folder window
  • Information used by other applications (macOS 10.4 and later), for example Spotlight

The name .DS_Store stands for Desktop Services Store. Files are created and updated automatically by Finder. A .DS_Store file can be safely deleted - doing so restores default folder settings, and Finder will automatically create a new one on the next folder access. The file is also created on removable storage devices such as USB drives. For remote file systems accessible from macOS, .DS_Store files are generated by default, but this behavior can be disabled via a Terminal command. .DS_Store files are also created inside compressed archives and will appear in unpacked folders even on other operating systems, though they serve no function there. Because they can inadvertently expose directory structure and metadata, many developers add .DS_Store to their .gitignore file.

Security & safety

RISK: LOW

A .DS_Store is inert metadata and is not a virus - it contains no executable code, so opening or deleting one cannot harm your computer or your files. Deleting it is always safe; macOS just recreates it with default view settings. The one genuine concern is privacy/disclosure, not malware: a .DS_Store records the names of items that were in a folder, so a copy left in a public place (a web server's directory, a shared ZIP) can reveal filenames you didn't intend to expose. For that reason, strip .DS_Store files before publishing archives or deploying a website, and add them to .gitignore.

Format details

in a nutshell
FULL NAMEmacOS Finder Desktop Services Store (.DS_Store)
DEVELOPERApplesince Mac OS X 10.0, 2001 (Desktop Services / Finder)
MIME TYPEapplication/octet-stream
TYPEBinary metadata file (Apple 'Buddy' allocator / B-tree); the full filename is '.DS_Store'
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001020304050607
HEX
0000000142756431
ASCII
····Bud1
A .DS_Store begins with 00 00 00 01 followed by "Bud1" (42 75 64 31) at offset 4 - Apple's "Buddy" allocator header. The leading dot hides the file in Finder and on Unix-like systems. The format is undocumented by Apple; the structure is known only through reverse engineering.

Programs that open DS_STORE files

Windows1 app
File Explorer / 7-Zip (to delete) Open-source There's nothing to view. Show hidden files (or open the archive in 7-Zip) and simply delete the .DS_Store entries - safe to remove.
macOS2 apps
Finder (built-in behavior) Built-in No app opens it - the Finder consumes it. It's hidden by default; press Cmd+Shift+. to reveal hidden files if you want to delete one.
Terminal (to remove/prevent) Built-in Delete recursively: 'find . -name .DS_Store -delete'. Stop them on network shares: 'defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true'.
Linux1 app
File manager / terminal (to delete) Open-source Show hidden files to see them, or run 'find . -name .DS_Store -delete' to clean a Mac-made folder.

Technical details

deep spec
Full filename`.DS_Store` - the leading dot is part of the name, not an extension separator; the file has no conventional extension
Internal formatApple proprietary "Buddy" allocator / B-tree binary structure; undocumented by Apple and known only through reverse engineering
Magic bytes`00 00 00 01 42 75 64 31` - first four bytes are `00 00 00 01`; bytes 4-7 spell `Bud1` (the Buddy allocator signature)
MIME type`application/octet-stream`
DeveloperApple Inc.
Byte orderBig-endian
Hidden by defaultYes - the leading dot conceals the file in Finder and in Unix/Linux shells unless hidden files are explicitly shown
Created bymacOS Finder; generated and updated automatically and silently on folder access, without user interaction
Stored metadataIcon sizes and positions, window geometry, selected view mode (icon / list / column / gallery), folder background image or color, Spotlight metadata (macOS 10.4+)
Network drive behaviorGenerated on remote SMB/AFP volumes by default; suppressible with `defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true`
Deletion behaviorSafe to delete at any time; Finder recreates the file automatically on the next access to the same folder
Cross-platform behaviorNon-functional on Windows and Linux; appears in folder trees extracted from macOS-created archives but is ignored by those systems
Security implicationCan leak internal directory structure and file-path metadata if committed to version control repositories or distributed inside archives
Typical file sizeA few hundred bytes to several KB, depending on the number of items and metadata entries stored for the folder
Documentation statusOfficially undocumented by Apple; internal structure was reverse-engineered by third-party developers
ReleasedMac OS X 10.0, 2001 (Desktop Services / Finder)
Specificationen.wikipedia.org

DS_STORE conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with DS_STORE files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about DS_STORE files.

Frequently asked questions

What is a .DS_Store file and why do I have it?
It's a hidden file the macOS Finder creates in every folder to remember view settings (icon positions, window size, sort order). You typically see it on a non-Mac because it was copied along with a Mac user's folder or ZIP. It's not part of your actual files.
Can I delete .DS_Store files?
Yes, always safely. Your documents are untouched - the file only stores Finder view preferences. On a Mac the Finder will recreate it (with default settings) next time you open that folder.
Is a .DS_Store file a virus?
No. It's harmless Apple metadata with no executable code. The only real caveat is privacy: it lists the names of files that were in the folder, so don't leave it on a public web server.
How do I stop macOS from creating .DS_Store files?
You can't fully stop it locally, but you can keep them off network shares: run 'defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true' and log out/in. For archives and Git repos, exclude .DS_Store (e.g. in .gitignore) or delete them before zipping.
How do I delete all .DS_Store files in a folder?
On macOS/Linux run 'find . -name .DS_Store -delete' in the folder. On Windows, enable 'show hidden files' (or open the archive in 7-Zip) and delete the .DS_Store entries.
Will deleting .DS_Store change my files?
No. The only effect is that the affected folder forgets its custom Finder view (icon arrangement, window size) and reverts to defaults. The files inside are completely unaffected.

References

1Wikipedia - .DS_Store (format & history)en.wikipedia.org
2Apple Support - How to prevent .DS_Store files on network sharessupport.apple.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.ICACitrix Independent Computing Architecture file
.WMZWindows Media Player Skin
.CFGConfiguration File
.LICLicense File
.CONFConfiguration File
.OVPNOpenVPN Configuration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z