Free, open-source, native. Adds a "New Text File" button to the macOS Finder toolbar and right-click menu. Click it in any Finder window to instantly create New Text File.txt in that folder, with auto-incrementing names. Reveals and selects the new file.
macOS Finder lets you create a New Folder but not a New File. NewFile fixes that — the way it should have shipped.
For 15+ years macOS users have asked for a built-in "right-click → New File" or "New Text File" toolbar button in Finder. Windows and most Linux file managers have it; macOS doesn't. NewFile is a small, native Finder Sync Extension that adds the missing button — no Automator, no shell scripts, no setup beyond enabling the extension once.
Useful when you're:
- setting up LLM / dev infrastructure and constantly creating tiny config / prompt / scratch files
- coming from Windows or Linux and missing the right-click → New File workflow
- annoyed at having to open TextEdit just to make an empty
.txt
brew install --cask 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.
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.
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.
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.
- Toolbar button
- Right-click context menu
- Auto-incrementing filename
- Reveal + select after creation
- Custom filename templates (.md, .py, .json, .swift, etc.)
- Configurable default extension
- Customizable base name
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