Online Markdown Editor
Edit Markdown the way it reads, or as plain text, and switch between the two at any time. Prettify opens .md files in an editable WYSIWYG Preview, a Raw view with syntax highlighting, and a Properties card for the YAML frontmatter. It runs in your browser and as a native macOS app.
What the Markdown editor does
Many rich text editors rewrite Markdown when they save it: list markers change, tables lose their alignment, and inline HTML disappears. In the Prettify Preview you type in the rendered document, and the Markdown source follows. Prettier formats each edit, so the stored text stays consistent.
When the Preview cannot write a document back exactly, it opens read-only with a notice, and an Edit in Raw button takes you to the source. An edit never changes lines you did not touch by surprise.
Key features
The editor has three parts that work on the same document: the Preview, the Raw view, and the Properties card. A change in one shows in the others at once.
- The Preview is a WYSIWYG editor for headings, lists, tables, links, and code.
- The Raw view shows the source as plain text with syntax highlighting.
- The Properties card edits frontmatter: a text field for strings, a checkbox for true and false, and a field for numbers.
- Lists and nested values in the frontmatter show as YAML, and Edit YAML changes them.
- Add properties starts a frontmatter block in a document that has none.
- The Problems panel lists YAML errors with their line, and a click jumps to the line.
How to use the Markdown editor
The box on this page checks your text first, which is useful when a file came from somewhere else. You can also open the editor directly and start from a file.
- Paste your Markdown into the box, or select Try an example.
- Select Open in Preview to load the document into the editor.
- Click into the rendered text and type, or change a field in the Properties card.
- Switch to Raw in the view switcher to edit the source.
- Select Format in the toolbar to run Prettier on the whole document.
- Open a file from disk, or drag one into the window, to edit a file you already have.
Worked example: a post with broken frontmatter
This post has a title, a tags list that is missing its closing bracket, and a draft flag. The YAML is not valid, so the frontmatter cannot load as a Properties card. Static site builds often fail on this kind of file.
---
title: Launch post
tags: [news
draft: true
---
# HelloFinding and fixing the error
Paste the post in the box, and it shows "Line 4, column 1: Frontmatter: missed comma between flow collection entries". The button reads Fix it in the editor. In the editor, the same error appears in the Problems panel with its line.
The parser reads on to line 4 before it notices the open bracket on line 3. Add the closing bracket to the tags line, and the error goes away. The frontmatter then shows in the Properties card, with draft as a checkbox.
Common use cases
A WYSIWYG editor with source access fits documents that carry settings in their frontmatter. These are common jobs for it, and each one starts with a paste or a file.
- Write a blog post or a docs page with a title, tags, and a draft flag.
- Edit a README without leaving the rendered view.
- Fix the frontmatter of a post that your static site generator will not build.
- Maintain a SKILL.md, where a broken name or description changes how the skill loads.
- Take quick notes in Markdown and copy them out when you finish.
Pro tools in the same editor
Pro adds Both, which shows the Raw view and the Preview next to each other and keeps them in sync. The Outline lists the headings and jumps to one when you select it; it is hidden below 768 px wide. Mermaid diagrams render in the Preview, and export saves the document as HTML or as PDF.
Files and the desktop app
Open a file by paste, file picker, or drag and drop. The native macOS app also opens .md, .markdown, and .mdx files from Finder. A file of 200 KB or more opens in a read-only Preview, and you edit it in the Raw view.
Frequently asked questions
Is this a WYSIWYG Markdown editor?
Yes. The Preview is an editor: type in it like a document, and the Markdown source follows. The Raw view is there when you want to edit the source directly.
Will the editor change my formatting?
Prettier formats the document when you open it and when you edit in the Preview, so list markers and table spacing follow one style. The first Preview edit of an unformatted document formats the whole document, and the editor shows a notice when it does.
Can I edit YAML frontmatter?
Yes. The Properties card lets you edit each field, or the whole block as YAML with Edit YAML. Invalid YAML shows in the Problems panel with its line, and that check is free.
Is the Markdown editor free?
Yes. Editing in the Preview and the Raw view, Prettier formatting, and the Properties card are free with no sign-up. Pro adds Side by side, the Outline, Mermaid diagrams, Skill Check, and HTML and PDF export.
Is there a desktop app?
Yes. The native macOS app has the same editor and opens .md, .markdown, and .mdx files from Finder.
Can I convert Markdown to JSON or YAML?
No. Markdown is a text document in Prettify, not data, so it does not convert to JSON, YAML, CSV, or XML. Pro can export a Markdown document as HTML, or as PDF on the web.