Edit frontmatter

Edit YAML front matter fields while preserving the Markdown body below it.

freeworks offlinenothing uploaded
ToolFrontmatter Editor
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

A leading delimiter block is parsed as YAML metadata, selected fields are added, updated, or removed, and metadata plus remaining Markdown body are serialized again. Text outside the block stays body content.

  • YAML matches common static-site generators.
  • A leading delimiter distinguishes metadata from ordinary Markdown.

Worked example

Edit frontmatter fields
Update YAML frontmatter in a Markdown document
Input
											---
title: My Post
date: 2024-01-01
---

# Content here
										
Output
												---
title: My Post
date: 2024-01-01T00:00:00.000Z
---

# Content here
											

When to use this

Astro, Jekyll, and Hugo pages edit titles, dates, tags, and draft flags in front matter.

Edge cases

  • A missing closing delimiter leaves no complete metadata block.
  • An unquoted colon or bracket can change a YAML value’s parsed type.
  • Removing the final field can leave an empty block interpreted differently by generators.

References