Free, open-source, native. A small Finder Sync Extension that adds the missing "New File" button to macOS Finder — right-click menu and toolbar. No Automator, no shell scripts, no setup beyond enabling the extension once.
- Any file type —
.txtenabled by default, plus 7 built-in presets (.md,.json,.sh,.env,.yml,.gitignore,.html). Add your own (.tsx,.toml, whatever you need). - Starter templates — pre-fill new files with frontmatter, shebang lines, a JSON skeleton, or any boilerplate you reuse.
- Drag-to-reorder — set the menu order in Preferences; the first enabled type is the toolbar's one-click action.
- Submenu mode — optionally collapse all types under a single "New File ▸" right-click entry.
- Auto-incrementing names —
New Text File.txt, thenNew Text File 2.txt, and so on. Reveals and selects the new file. - Auto-updates via Sparkle — no need to re-download.
macOS Finder lets you create a New Folder but not a New File. NewFile fixes that — the way it should have shipped.
brew install mariusgm/newfile/newfile- Download the latest
NewFile.dmgfrom Releases. - Drag
NewFile.appto/Applications. - Launch it once. Follow the in-app instructions to enable the Finder extension.
System Settings → General → Login Items & Extensions → scroll to Added Extensions → toggle NewFile Extension.
On macOS Sequoia 15.0 and 15.1 the Extensions UI was buggy — update to 15.2 or later if NewFile Extension doesn't appear in the toggle list.
On macOS 27 "Golden Gate" this pane was reworked to list only Finder Sync and File Provider extensions. NewFile has not been walked through on 27 yet — if the toggle doesn't appear, please open an issue.
In any Finder window: View → Customize Toolbar… → drag the NewFile icon into the toolbar where you want it.
- Toolbar button: click → menu pops with "New Text File" → click → file created and selected.
- Right-click: anywhere in a Finder window background → "New Text File".
The created file is named New Text File.txt. If that name exists, it becomes New Text File 2.txt, then New Text File 3.txt, and so on.
On recent macOS versions, Finder doesn't show right-click items from third-party Finder extensions inside iCloud Drive folders — including Desktop and Documents when they sync to iCloud. Finder Sync extensions were designed around a folder each extension owns, and iCloud Drive manages these folders itself (Apple Developer Forums). Other Finder Sync apps report the same behavior. We haven't identified a supported Finder Sync workaround that restores the right-click menu there. The toolbar button works in iCloud Drive — add it once (above) and use it there.
Open NewFile.app → ⌘, (or click the toolbar dropdown → Customize…) to manage file types, templates, menu order, and submenu mode. Each type has an editable menu label (what Finder shows) and a default filename; leave the filename empty for dotfile-style names (.env, .gitignore). A Rich Text (.rtf) type ships with a minimal RTF header so the file opens in TextEdit; an empty .rtf isn't a valid RTF document. The Add…/Edit… button per row manages that type's starter template.
git clone https://github.com/mariusgm/newfile.git
cd newfile
brew install xcodegen
xcodegen generate
open NewFile.xcodeprojIn Xcode: select the NewFile scheme, ⌘R to build & run. See setup.md for code signing and notarization notes if you want to distribute your own build.
newfile/
├── App/ SwiftUI host app — onboarding window only
├── Extension/ FIFinderSync subclass — toolbar + context menu + file creation
├── project.yml xcodegen project definition (regenerable)
├── README.md
└── setup.md codesigning + notarization + release notes
The host app (NewFile.app) is intentionally minimal — its only job is to embed the Finder Sync extension and present onboarding. All the work happens in Extension/FinderSync.swift.
Quitting NewFile doesn't stop the Finder extension — Finder keeps it running as its own process, which is why macOS can say the app is "in use" when you try to delete it.
Homebrew: brew uninstall --cask newfile (add --zap to also remove your saved file types).
Manual (DMG install):
- Quit NewFile (⌘Q).
- System Settings → General → Login Items & Extensions → Extensions → Finder extensions → uncheck NewFile.
- Drag NewFile.app from Applications to the Trash.
- Optional — remove saved settings: delete
~/Library/Group Containers/Q7VD7MTRL8.dev.newfile.NewFile.
NewFile is implemented as a Finder Sync Extension (FIFinderSync) — Apple's supported way to add toolbar buttons and context menus to Finder. It runs sandboxed under macOS's app extension model. No private APIs, no SIMBL, no Finder injection.
When you click the toolbar button or context menu item:
- The extension reads the targeted folder via
FIFinderSyncController.targetedURL(). - It picks a unique filename (
New Text File.txt, thenNew Text File 2.txt, etc.). - It creates an empty file with
FileManager.createFile. - It calls
NSWorkspace.activateFileViewerSelectingto reveal and select the file.
MIT — do whatever, no warranty.
- MacNewFile — older Objective-C implementation of the same idea
- New File Menu — paid MAS alternative ($2.99)
- iBoysoft MagicMenu — paid right-click utility ($19.99/yr) that bundles new-file