Browser-only OKF Validator

OKF Validator: check an Open Knowledge Format file

Instant client-side OKF and YAML frontmatter validator (supports OKF v0.1 & v0.2 structure). Paste Markdown to check frontmatter and required fields without installation or server uploads.

Paste OKF Markdown

Validator quick actions

Paste OKF Markdown

Use one Markdown file with YAML frontmatter at the top.

View File Example

Check YAML frontmatter

Review type, title, description, tags, resource, and timestamp fields.

Read Frontmatter Guide

No upload

The check runs in the browser. The pasted Markdown is not sent to this website by the validator.

Copy Templates

What this validator checks

Repair one OKF file

Use this page when you need to repair one pasted Markdown file. Use the OKF Folder Validator when you need to check `index.md`, duplicate resources, and relative links across a local bundle.

Required OKF fields

Required field

This validator treats type as the required OKF field.

Recommended fields

These fields are not required, but they make snippets, previews, indexes, and bundle review easier.

v0.2 field review

generated, verified, status, stale_after, and sources can help an owner review a file. This browser helper does not verify those fields or turn them into official requirements.

Common validation errors

Error
What it means
Fix
Missing frontmatter
The file starts with Markdown body text instead of metadata.
Add a YAML frontmatter block before the first heading.
Missing type
The file has metadata, but no concept category.
Add type: Website Page, type: API Endpoint, or another clear label.
Tags not array
Tags are written as loose text.
Use tags: [okf, validator, markdown].
Missing resource
The file does not identify the source it describes.
Add a canonical URL, URN, or stable source identifier.
Relative link warning
The pasted file links to another Markdown file.
Use the folder validator to check whether the target exists.
Empty body
The file has metadata but no useful Markdown explanation.
Add a focused body before publishing.

Example OKF file

Use this starter file to test the validator, then read the OKF file example guide for field notes and common mistakes.

Correct OKF example
---
type: Website Page
title: Open Knowledge Format Validator
description: A browser-only tool that checks basic OKF frontmatter fields.
resource: https://openknowledgeformat.online/okf-validator/
tags: [okf, validator, markdown]
timestamp: 2026-06-21T00:00:00Z
---

# Purpose

This page helps users test whether a Markdown document includes the fields expected by this guide.

What this validator can and cannot prove

The validator runs in the browser and does not upload pasted Markdown to this website. It checks one file's structure, not source truth, official status, full OKF conformance, or AI visibility. Do not paste restricted records into any online page unless your own policy allows it.

Next steps after a single-file check

FAQ

OKF validator questions

Is this an official OKF validator?

No. It is an unofficial browser-only helper for learning and checking a guide profile.

Does it upload my Markdown?

No. The validation logic runs in the browser.

What field is required?

The field this guide treats as required is type. Other fields are recommended for clear previews and review.

Does this validate v0.2 trust metadata?

No. Fields such as generated, verified, status, stale_after, and sources need manual review; this tool does not verify their meaning or official conformance.

Can it validate a full bundle?

Not fully. This page checks pasted Markdown files. Use the folder validator for local multi-file checks, then review source accuracy manually.