Markdown Frontmatter Editor

Markdown Frontmatter Editor

Edit YAML frontmatter in Markdown documents visually. Parse, modify, add, or remove frontmatter fields without editing raw YAML. Powered by the gray-matter library.

markdown
frontmatter
yaml
Share this tool:
Quick Presets
Sample markdown documents with YAML frontmatter
Input
Paste a markdown document with YAML frontmatter
How it works: Parses YAML frontmatter from your markdown document, letting you edit, add, or remove fields visually. Then reconstructs the full document with your changes. Powered by the gray-matter library.

Complete Guide: Markdown Frontmatter Editor

Everything you need to know about using this tool effectively

What is Markdown Frontmatter Editor?

The Markdown Frontmatter Editor lets you view and edit the YAML front matter block at the top of Markdown files. It parses the front matter between --- delimiters, displays the fields in a structured editor, and lets you add, modify, or remove fields without touching the Markdown content below. All processing happens in the browser.

This tool splits a Markdown file into front matter (YAML between --- delimiters) and body content. It parses the YAML into a key-value editor, lets you modify fields, and reassembles the file with the updated front matter.

Key Features
Parses YAML front matter from Markdown
Structured key-value editor
Add, modify, and remove fields
Preserves Markdown body content
Copy updated Markdown to clipboard
Download as .md file
Runs in the browser with no uploads
Real-time preview
Common Use Cases
When and why you might need this tool

Editing blog post metadata

Change the title, date, tags, or author of a Markdown blog post.

Updating Jekyll or Hugo pages

Edit front matter fields in static site generator content files.

Adding SEO metadata

Add description and keywords fields to Markdown documents for SEO.

Batch-editing documentation

Edit front matter across multiple documentation files.

How to Use This Tool
Step-by-step guide to get the best results
1

Paste Markdown with front matter

Enter Markdown that has a YAML front matter block at the top.

2

Edit fields

Modify existing fields or add new ones in the editor.

3

Copy the result

Copy the updated Markdown with the modified front matter.

Pro Tips
1

Front matter must be between --- delimiters at the very start of the file.

2

Use standard YAML syntax for values: strings in quotes, lists with dashes.

3

The tool preserves the Markdown body below the front matter.

4

Common fields: title, date, author, tags, description, layout.

Frequently Asked Questions
What is YAML front matter?

YAML front matter is a metadata block at the top of a Markdown file, enclosed between --- delimiters. It contains key-value pairs used by static site generators and CMS platforms.

Is my content sent to a server?

No. All parsing and editing happens in your browser. Nothing is transmitted.

Can I add new fields?

Yes. Use the 'Add Field' button to create new key-value pairs in the front matter.

Is the Markdown body preserved?

Yes. Only the front matter section is modified. The Markdown content below is unchanged.

What platforms use front matter?

Jekyll, Hugo, Gatsby, Astro, Next.js, Nuxt, Obsidian, and many other static site generators and CMS platforms.