TinyEdit

为 macOS 原生打造的
轻量文本编辑器
A lightweight text editor,
made natively for macOS

适合日常的笔记、JSON 与 Markdown。粘贴进来的 Base64、截图和 curl 命令,也能在编辑器里直接处理。 For everyday notes, JSON and Markdown. Base64, screenshots and curl commands you paste in are handled right in the editor.

macOS 14 及以上macOS 14 or later支持 Apple 芯片与 IntelApple silicon and Intel安装包约 12 MBAbout a 12 MB download免费开源(GPL v3)Free and open source (GPL v3)
TinyEdit with a single plain-text tab, Notes.txt TinyEdit with a single plain-text tab
Folder sidebar, Markdown source and its preview Folder sidebar, Markdown source and its preview
Swift source with syntax highlighting Swift source with syntax highlighting

默认是一个干净的编辑窗口,没有多余的面板,打开即可输入。By default, a clean window with nothing in the way: open it and type.

常用工具Everyday tools

以下画面依照 TinyEdit 的界面绘制,自动轮换,也可点击标签页切换。These views are drawn after TinyEdit's interface. They rotate on their own, or pick one from the tabs.

TinyEdit

功能Features

轻点截图可放大查看,左右拖动浏览。Tap a screenshot to see it larger and drag to look around.

以下截图均来自应用本身,界面为英文、深色外观;界面语言与外观可在设置中更改。Screenshots from the app itself, in English with the dark appearance. Both can be changed in Settings.

JSON 工具JSON tools

除格式化、压缩与转义外,TinyEdit 更多地帮助阅读 JSON。格式化保留键的顺序与数字的原始写法。Beyond formatting, minifying and escaping, TinyEdit helps you read JSON. Formatting keeps key order and numbers as written.

  • 光标所在的键或值,可拷贝其路径、键与值;字符串拷贝时还原转义。Copy the path, key or value under the caret; strings are copied unescaped.
  • 对象、数组或长字符串可在新标签页中单独打开,字符串内嵌的 JSON 会自动格式化。Open an object, array or long string in its own tab; JSON inside a string is formatted.
  • 行尾标注时间戳对应的日期、颜色、JWT 的过期时间,以及对象的键数与数组的项数。Line ends show the date of a timestamp, colors, a JWT's expiry, and key and item counts.
  • 图片链接与内嵌图片可直接预览、拷贝或保存;URL 的查询参数可展开为 JSON。Preview, copy or save linked and embedded pictures; expand a URL's query into JSON.

粘贴内容识别Recognizing pasted text

粘贴 Base64、JWT、URL 编码、Unicode 转义或 JSON 字符串后,右上角会询问是否转换,并预览解码结果;可拷贝,也可替换粘贴的原文。Unix 时间戳会显示对应的本地时间。Paste Base64, a JWT, URL encoding, Unicode escapes or a JSON string, and a card in the corner offers to convert it with a preview of the result, to copy or to replace what you pasted. Unix timestamps show their local time.

含终端颜色代码或不可见字符的文本,会提示一键清理。Text carrying terminal color codes or invisible characters gets a one-click cleanup.

Looks like Base64 card with the decoded text, Copy and Replace

未保存的内容自动保留Unsaved text is kept

新建标签页后可直接输入,无需先为文件命名。标签页、未保存的文本、光标与滚动位置在退出后都会保留,下次启动时原样恢复。Start typing in a new tab without naming a file first. Tabs, unsaved text, the caret and the scroll position are kept through a quit and restored at the next launch.

这部分内容与原文件分开存放,原文件只在执行保存时才会改动。未命名的标签页以首行文字作为标题。This copy is stored apart from your files, which change only when you save. Untitled tabs take their title from the first line.

TinyEdit
UTF-8LFPlain Text

命令行Command line

应用自带 tinyedit 命令,可打开文件或文件夹、跳转到指定行,也可接收管道输入。TinyEdit comes with a tinyedit command that opens files and folders, jumps to a line, and reads piped input.

管道输入以新标签页打开,同样会识别 JSON 并提示格式化。已打开的文件会定位到原有标签页,不会重复打开。Piped text opens as a new tab and gets the same JSON detection as a paste. A file that is already open is selected rather than opened twice.

安装命令可在 设置 ▸ 通用 ▸ 命令行工具 中拷贝。Copy the install command from Settings ▸ General ▸ Command Line Tool.

# 打开文件,不存在时新建open a file, creating it if needed
~/project $ tinyedit notes.md

# 在新窗口中打开当前文件夹open this folder in a new window
~/project $ tinyedit .

# 跳到第 120 行第 5 列jump to line 120, column 5
~/project $ tinyedit main.swift:120:5

# 在新标签页中查看命令输出read a command's output in a new tab
~/project $ curl -s localhost:8080/items | tinyedit

文本比较Compare

比较两个标签页,或比较标签页与磁盘上的文件,逐行显示差异并标出改动的字词。编码与换行符的差异会单独提示。Compare two tabs, or a tab with a file on disk. Differences are shown line by line with the changed words marked; encoding and line-ending differences are noted separately.

入口位于标签页右键菜单与命令面板。From the tab context menu or the command palette.

Unified diff of Before.md and After.md

curl 请求curl requests

粘贴从浏览器“复制为 cURL”得到的命令,确认请求后点击 Send。状态码、耗时、响应头与正文显示在同一张卡片中,JSON 自动格式化。Paste a command from the browser's Copy as cURL, review the request and click Send. Status, timing, headers and body appear in one card, with JSON formatted.

请求由应用直接发出,不经过 shell,也不会自动发送。Sent by the app itself, never through a shell, and never without your click.

curl command with a 200 OK response card

翻译Translation

原文与译文并排显示,可翻译选区或整篇文档。支持 Apple 系统翻译(在本机运行,需 macOS 15),以及兼容 OpenAI 接口的云端服务或本地模型。The original and the translation side by side, for a selection or the whole document. Use Apple Translation (on device, macOS 15) or an OpenAI-compatible service or local model.

Translation sheet with the original and translated text

图片文字识别Text from pictures

粘贴截图或拖入图片,识别出的文字会插入光标处,识别过程在本机完成。Paste a screenshot or drop a picture, and the recognized text is inserted at the caret. Recognition runs on your Mac.

在 macOS 26 上,启用表格识别后,表格以制表符分隔,可直接粘贴到表格软件中。On macOS 26, enable table recognition to output tables as tab-separated text, ready for a spreadsheet.

A screenshot of a small table: Project estimate
Text recognized from the table and inserted in TinyEdit

与系统的配合Working with macOS

在 Finder 中按空格预览Quick Look in Finder
Markdown 显示渲染效果,JSON 与代码带语法高亮。Markdown is shown rendered; JSON and code are highlighted.
编码Encodings
支持 UTF-8、UTF-16 与 GB18030(兼容 GBK、GB2312),保留原有的换行格式。UTF-8, UTF-16 and GB18030 (covering GBK and GB2312), with line endings kept as they were.
外部修改提示Changes from other apps
文件被其他应用修改或删除时会给出提示;重新载入后,变化的行在行号旁标出。You are told when another app changes or deletes the file; after a reload, changed lines are marked in the gutter.
文件夹与多窗口Folders and windows
文件夹在独立窗口中打开,侧边栏随磁盘变化刷新;标签页可拖出为新窗口。Folders open in their own windows and the sidebar follows the disk; tabs can be dragged out into new windows.
外观与语言Appearance and language
浅色、深色或跟随系统;提供简繁中文、英语、日语等八种界面语言。Light, dark or following the system, in eight interface languages.
日常编辑Everyday editing
多标签页、查找替换、括号配对、缩进参考线,以及按行复制、移动与切换注释。Tabs, find and replace, bracket matching, indent guides, and line commands for copying, moving and commenting.
Markdown 预览Markdown preview
并排或单独预览,支持表格、代码块、图片和待办列表。Side by side or on its own, with tables, code blocks, pictures and task lists.

下载 TinyEditGet TinyEdit

免费开源,没有内购。需要 macOS 14 及以上,支持 Apple 芯片与 Intel。Free and open source, with no in-app purchases. Requires macOS 14 or later, on Apple silicon or Intel.

打开下载的 DMG,将 TinyEdit 拖入“应用程序”文件夹即可。Open the DMG and drag TinyEdit into Applications.