Skip to content

CotEditor

CotEditor Project · Free native Mac plain-text editor with syntax highlighting, encoding tools, folder search and scriptable text workflows.

CaskWriting & NotesAuto-updates 8.7K
Install command
brew install --cask coteditor
30-day installs
1,516
#197 in App
1-year installs
17.7K
Last 365 days
Latest version
7.1.3
Download size
27MB
dmg
Release cadence
Every 2 weeks
3 releases in 30 days

About

CotEditor is a free, native macOS plain-text editor for source code, configuration files, markup and everyday text. It provides syntax highlighting, document outlines, line numbers, character information, split editing, regular-expression find and replace, and tools for text encodings and line endings. It edits the text itself rather than producing a rich-text layout like a word processor.

Editing text and folders

Open a text file or folder, choose a syntax and inspect the text in one or more views. Folder search in7.1 can search across files in an open folder. Modes let you select indentation style and width for different workflows. The editor supports conversion of line endings and encodings, with tools to inspect characters and identify text that cannot be represented in an encoding. Verify the result when converting files used by another program; an encoding or line-ending change can affect compatibility.

Find and replace supports regular expressions and reusable replacement definitions. Use the appropriate scope and review matches before Replace All, especially across important files. CotEditor is a text editor, not a full IDE, compiler or debugger; editing a script does not install its language runtime or dependencies.

Installation and compatibility

CotEditor7.1.1 requires macOS26 Tahoe or later and runs natively on Intel x86-64 and Apple Silicon ARM64. Its direct-download DMG is26,594,816 bytes before installed storage. Copy the app from the DMG to Applications and open it. The7.0.9 historical release requires macOS15+, but that does not change the current7.1 requirement.

The direct download is free and needs no CotEditor account, subscription or activation. The Mac App Store is another distribution route and uses the usual Apple Account requirements. The direct-download edition uses Sparkle for updates; the App Store edition follows App Store updating. Document access is sandboxed and based on user-selected files and folders, so provide access through the app's supported file-opening workflow rather than assuming it can freely modify every protected path.

Scripts and automation

CotEditor supports scripts from its Script menu, including AppleScript and executable UNIX scripts. A UNIX script can receive selected text or document content through standard input and return output to the editor. Scripts require an available interpreter and must use an appropriate file extension and executable permissions.

Python scripts need a compatible Python interpreter installed separately. The official guide supports a shebang such as /usr/bin/env python3, but warns that CotEditor's PATH can differ from the Terminal shell's PATH. Specify an absolute interpreter path when a particular environment is required. The editor does not promise a bundled Python runtime or universal compatibility with every package environment. Run only trusted automation: scripts can change document content and perform other operations within their available permissions.

Saving and recovery

CotEditor provides macOS-style automatic saving and recovery mechanisms for editing work, but these are not independent backups. Saving, replacing text or running a script can change the actual document. Keep version control or separate backups for important files and review converted or rewritten documents before using them elsewhere.

License and cost

CotEditor is free and open source. Its current source-code license is Apache License2.0, while image resources have a separate Creative Commons Attribution-NonCommercial-NoDerivatives4.0 license. The source license is not a blanket license to reuse every project graphic. There is no required paid plan for the editor.

Official sources: CotEditor, Source and requirements, 7.1.1 release, UNIX scripting guide, License.

At a glance

Price
Free to download · $0.00
Chip
Apple silicon · Intel
Auto-updates
Yes
Repository
GitHub repository · Updated 0 days ago★8.7K
Developer
CotEditor Project
Homebrew
Available; the app updates itself
Also known as
coteditor
Homepage
coteditor.com
Token
coteditor

Checked

What’s new in 7.2.0-rc

New · From GitHub Releases

system requirements: macOS 26 and later

New Features

  • Add the Hungarian localization (thanks to Torma Zsolt!).

Improvements

  • Improve the performance of undo and redo in large documents.
  • Improve the performance of the file browser when many files in the opened folder change at once.
  • Update the AppleScript, BBCode, CoffeeScript, Dart, Erlang, Fortran, Git Config, INI, jq, JSON, Markdown, Perl, R, reStructuredText, SVG, Tcl, Verilog, XML, DTD, and YAML syntaxes to improve performance and highlighting accuracy.
  • Improve VoiceOver support (thanks to Torma Zsolt!).
  • Update tree-sitter-c-sharp to 0.24.0.
  • Update tree-sitter-php to 0.25.2.
  • [trivial] Display the setting name in the error message when importing a setting fails.
  • [trivial] Display errors in the cot command as a brief message instead of a Python traceback.
  • [beta] Optimize regular-expression-based syntax highlighting in large documents.
  • [beta] Update Czech, Polish, and Portuguese localizations.

Fixes

  • Fix several issues where the editor’s font and indentation were reset, such as when opening documents with the “Detect indent style on document opening” option, splitting the editor, or relaunching the app.
  • Fix several issues in the cot command, such as where the --new option could empty existing files or the --wait option stopped waiting when the window was minimized.
  • Fix an issue where Keyboard Maestro and other accessibility tools could not find the Text menu.
  • Fix an issue in the file browser where the item with the old name remained after changing only the capitalization of its name.
  • Fix an issue in the file browser where changes were no longer reflected after renaming or moving the opened folder or its subfolders.
  • Fix an issue in the file browser where both a file and a folder with the same name appeared after one replaced the other.
  • Fix an issue in the file browser where filtering did not work when the folder contained a subfolder that could not be read.
  • Fix an issue in the file browser where the filter results were not updated correctly after files were changed outside the app.
  • Fix an issue where importing a settings archive exported from CotEditor 6.2 failed if it included custom syntaxes.
  • Fix an issue where the AppleScript replace command could fail to replace a single match when the regular expression used lookahead.
  • [trivial] Fix an issue in the file browser where filtering with only certain combining marks showed all items.
  • [trivial] Fix an issue where importing a settings archive failed if it contained hidden files, such as .DS_Store.
  • [trivial] Fix an issue where importing a setting listed it twice if a custom setting with the same name but different capitalization already existed.
  • [trivial] Fix an issue where the line and column of the insertion point in the status bar could remain outdated after the document was reloaded with changes made outside the app.

Full Changelog: https://github.com/coteditor/CotEditor/compare/7.2.0-beta...7.2.0-rc

How to install CotEditor on Mac

Homebrew installs the app in your Applications folder.

Install without Homebrew

Download the same file Homebrew uses: Install Details

Uninstall CotEditor and optional data cleanup

Uninstall command
brew uninstall --cask coteditor

A regular uninstall removes the app and keeps its settings and caches.

Deep clean (optional)
Uninstall command
brew uninstall --zap --cask coteditor

--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.

Questions about CotEditor

Is CotEditor safe?

CotEditor is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from github.com against its SHA-256 checksum. It was installed 1,516 times through Homebrew in the last 30 days.

Is CotEditor free?

“CotEditor” is free to download on the Mac App Store. Homebrew installs the version from the developer’s website, which can differ from the App Store edition in price and features. Source: apps.apple.com, checked Nov 21, 2026.

Does CotEditor have a public GitHub repository?

CotEditor has a public GitHub repository (https://github.com/coteditor/CotEditor), but OpenNavo has not verified an OSI license.

How do I completely uninstall CotEditor on a Mac?

Run brew uninstall --cask coteditor. It quits the app. To delete its settings and caches as well, run brew uninstall --zap --cask coteditor. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes 8 files and folders, including ~/Library/Containers/com.coteditor.CotEditor.

Does CotEditor run on Apple silicon (M1 and later) Macs?

Homebrew installs it on both Apple silicon and Intel Macs, from the same download.

Where does CotEditor store its settings and data?

Its settings are in ~/Library/Preferences/com.coteditor.CotEditor.plist. Its data is in ~/Library/Containers/com.coteditor.CotEditor. These locations come from Homebrew’s clean-up list.

What is the latest version of CotEditor?

The latest version is 7.1.3, added to Homebrew on Oct 28, 2026. CotEditor updates itself; to update it with Homebrew, run brew upgrade --cask --greedy coteditor.

What else does installing CotEditor add?

It also adds 1 command-line tool: cot.

Similar Apps

  • MarkEditFree native Markdown editor for macOS with CodeMirror editing, document navigation and optional extensions.
  • QuartoAn open-source technical publishing system for turning Markdown and computational notebooks into reports, websites, books and presentations.
  • TyporaA Markdown editor with live formatting, a file sidebar, outlines, tables, code blocks and export workflows in a distraction-free writing view.
  • GranolaAn AI meeting notepad that combines your written notes with computer audio to produce organized summaries and follow-up information.
Browse all apps