Markdown notes in iCloud Drive: one folder on Mac, iPhone and iPad
To keep Markdown notes in iCloud Drive, put one .md folder where your iPhone app can open it, keep it downloaded on the Mac and know how conflicts work.

To keep Markdown notes in iCloud Drive, put one folder of .md files in iCloud Drive and open that same folder in a Markdown app on each device. iCloud moves the files; the apps only read and write them. The details that decide whether it works smoothly are which folder your iPhone or iPad app is allowed to open, whether the Mac keeps the files downloaded, and what happens when the same note is edited on two devices.
This guide covers those three things. The Apple details come from Apple's support pages, read in November 2026. For comparing iCloud with Dropbox, Git or Syncthing, see how to sync Markdown notes without a server.
Where should the notes folder go in iCloud Drive?
Start from the app you will use on the iPhone or iPad, because mobile apps are the ones with rules. On a Mac, any app can open any folder in iCloud Drive. On iOS, many apps can only open their own folder.
iCloud Drive has folders that belong to apps, shown with the app's name and icon. Apple's iCloud Drive guide says "Each app folder can contain additional folders, but can only contain files the app can open." A Markdown app's folder can hold your whole notes tree.
| App on iPhone or iPad | Folder it uses in iCloud Drive |
|---|---|
| Obsidian | A vault inside iCloud Drive > Obsidian; Obsidian's sync guide says "Do not use the plain folder without the app icon" |
| iA Writer | Its own folder by default, plus any folder you add with Add Location (iA guide) |
| 1Writer, Textastic | Folders you open from the Files app |
| Noteline | iCloud Drive > Noteline, or a folder inside it |
If you use one app on the phone, put the notes in that app's folder and point the Mac at it. If you switch between two phone apps with different rules, pick the stricter one's folder and check that the other can open it. Our iPad Markdown editor comparison lists more apps and how they store notes.
A layout that works with any of them:
iCloud Drive/
Noteline/ (or Obsidian/My Vault/, or a folder you add)
inbox.md
projects/
launch-plan.md
meetings/
2026-11-26-weekly.md
images/
chart.png
How do you keep the notes downloaded on a Mac?
iCloud can remove local copies to save disk space. With Optimize Mac Storage turned on, older documents move to iCloud when the Mac needs space. A file stored only in iCloud still shows in Finder and downloads when an app opens it, but folder-wide tools need the actual file on disk. A search with grep, a Git command or an editor's search across the folder will skip or wait on files that are not there.
To keep the notes folder on the Mac:
- Open Finder and go to iCloud Drive in the sidebar.
- Control-click the notes folder.
- Choose Keep Downloaded.
Apple documents this, with Download Now and Remove Download, on the same iCloud Drive guide. On older macOS versions without Keep Downloaded, turning off Optimize Mac Storage keeps everything in iCloud Drive local. Obsidian's sync guide gives the same advice for its folder.
On iPhone and iPad, Apple's iCloud Drive page documents Download and Remove Download in the Files app.
What happens when a note is edited on two devices?
If both devices are online, iCloud uploads each save and the other device gets the newer file once it has synced. The risk is editing on two devices while one is offline. Apple's conflict page says "Conflicts can occur when you use more than one device that's not connected to the internet," and that you are then asked which versions to keep. "Versions you don't select are deleted from iCloud Drive on any computer, iPhone, or iPad." If you keep both, the extra copy gets a number added to its name, so launch-plan.md may sit next to launch-plan 2.md.
Habits that avoid most of this:
- Let the device sync before you switch. Open the note on the second device only after the first has had a moment online.
- Use an editor that notices outside changes, so a note that changed in iCloud while it was open is not silently overwritten.
- Search for numbered copies now and then. Search the notes folder in Finder or File Explorer for
2.md, or runfind . -name "* 2.md"from inside the folder in a terminal. - Keep one editor per note at a time. Two apps writing the same file is how conflicts start even on one device.
How much iCloud storage do Markdown notes need?
Very little. Apple gives 5 GB of iCloud storage free, shared with photos, backups and everything else. Text notes are small: as an example, a thousand notes of two kilobytes each come to about 2 MB. Images and PDFs kept next to the notes are what fill space, so put them in an images/ folder you can check, and use paid iCloud+ storage if your photo library already uses the free allowance.
Can you open the same iCloud folder on Windows?
Yes, with Apple's iCloud for Windows app, which shows iCloud Drive in File Explorer. Apple's guide for Windows explains keeping files local: in File Explorer, right-click the folder under iCloud Drive and choose Always keep on this device. Then open the folder in any Markdown editor on the PC. The same conflict rules apply.
Using an iCloud notes folder with Noteline
Noteline, which we make, works with the Noteline folder in iCloud Drive on every Apple device:
- On the iPhone or iPad, open the sidebar and tap Storage. In Where your notes live, choose iCloud Drive, then tap Done.
- On the Mac, choose File > Open Folder… (Cmd+O), open iCloud Drive and select the Noteline folder, or a folder inside it. Subfolders appear in the sidebar.
- If you had notes on the device before switching, move them in the Files app from On My iPhone > Noteline to iCloud Drive > Noteline. Switching storage does not move them for you.
The phone and iPad apps cannot open other iCloud Drive folders, so this works well when the Noteline folder is your notes folder. The Mac app watches the folder: if a note you have open changes in iCloud, a bar offers Use disk version and Keep my version, and neither choice merges the two. Noteline has no sync or cloud of its own; iCloud does the moving. The iPhone and iPad apps are free; the Mac app has a 14-day free trial, then a lifetime license.
Common questions
Is iCloud Drive a backup of my notes?
Not on its own. Deleting a note on one device deletes it everywhere, and a conflict version you do not keep is deleted from all devices. Keep a separate copy of the folder as well, for example a regular copy to another drive or a Git repository.
Does iCloud keep version history of a note?
Apple's conflict handling asks you to choose between versions; it is not a running history of edits. If you want every change on record, a Git repository gives you that, and Git for notes explains the setup. Keep the repository outside iCloud Drive or be prepared for iCloud to sync the .git folder too.