Markdown Frontmatter Parser
File
Static-site frameworks (Astro, Hugo, Jekyll, Next.js MDX, Gatsby) all put metadata in a fenced block at the top of each `.md` / `.mdx` file. This tool detects whether that block is YAML (`---`), TOML (`+++`), or JSON (`{...}`), parses it into a JSON object you can copy into a CMS migration script, and shows the rest of the file as the body with word/char counts. The parser is intentionally simple — flat keys, primitive values, bracket arrays, basic block arrays — so it handles 95% of real frontmatter without dragging in a full YAML library.
How to use
- Drop a `.md` / `.mdx` file or paste raw text starting with `---` (YAML), `+++` (TOML), or `{` (JSON).
- The fenced block is parsed into a field table and a JSON object below.
- The body underneath gets shown separately — copy it to feed a content pipeline that doesn't need the frontmatter.
Frequently asked questions
- Does it support nested objects or anchors?
- It handles flat keys, primitive values (string, number, bool, null), bracket arrays, and YAML block arrays. Complex nesting, references, anchors and multi-line strings need a full YAML library — for those, parse with `js-yaml` or your framework's loader.
- What if there's no frontmatter?
- The whole input is treated as the body. You'll see a hint saying no frontmatter was detected, and the body / word count still works.
Related tools
Image → PDF Converter
Combine multiple JPG / PNG images into a single PDF with adjustable page size, orientation, and fit.
ZIP Inspector
Drop a ZIP and see every file inside — sizes, contents, and per-file download — without unpacking it locally.
File Splitter
Split a large file into smaller chunks to bypass attachment or upload size limits.
Text Encoding Converter
Open text files in legacy encodings (EUC-KR, Shift_JIS, Windows-1252…) as readable UTF-8.
File Hash (Checksum)
Compute SHA-1, SHA-256, and SHA-512 checksums of any file.
CSV ↔ JSON Converter
Convert CSV to JSON and JSON back to CSV, with a delimiter option.