Markdown Frontmatter Parser
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
.env File Parser
Parse a .env / dotenv file with full support for single-quoted, double-quoted, multi-line, and inline-comment values. Export as JSON, YAML, shell exports, Dockerfile ENV, or Netlify TOML.
Excel (XLSX) to CSV, JSON & Markdown
Open an .xlsx workbook in the browser and export any sheet as CSV, JSON or a Markdown table — the file never leaves your device.
CSV ↔ JSON Converter
Convert CSV to JSON and JSON back to CSV, with a delimiter option.
EML File Viewer
Drop an `.eml` file and read the parsed message — key headers, plain-text and HTML body parts, and a list of attachments — all in the browser.
vCard (.vcf) File Parser & Inspector
Drop or paste any vCard 2.1, 3.0, or 4.0 .vcf export and read all the contacts as cards — names, phone numbers, emails, addresses, organizations, URLs, birthdays, notes, embedded photos, and any custom X- fields, all parsed locally in your browser.
Bencode / .torrent Inspector
Drop any bencoded file (.torrent or raw bencode) and inspect its tree, info hash (SHA-1), trackers, file list, piece length, and creation metadata — all parsed locally in your browser.