Markdown to AI Knowledge Base

Turn Markdown docs into clean chunks for retrieval-augmented generation. Each document is split at its headings into token-sized pieces, with the heading path and front matter kept as metadata, ready to embed or upload.

Markdown → JSONL · JSON · CSVFreeNew
Documents

    Add Markdown to build a knowledge base

    Upload docs, notes or a README. Each one is split at its headings into chunks sized for embeddings, with the heading path and front matter kept as metadata.

    How it works

    How to use the Markdown to AI Knowledge Base

    1. 01

      Upload one or more Markdown files, or paste a document. Load the sample to see how it works.

    2. 02

      Choose the maximum chunk size and overlap. 300–800 tokens suits most embedding models.

    3. 03

      Review the chunks: each shows its heading path and token count, and expands to the full text.

    4. 04

      Pick an export format and download it, or copy it into your pipeline.

    About this tool

    Why chunking decides how good RAG answers are

    Retrieval-augmented generation finds the most relevant pieces of your documents and gives them to a model as context. Those pieces are chunks, and how you cut them matters: chunks that are too big bury the answer in unrelated text, chunks that are too small lose the context that makes them meaningful, and cuts in the middle of a code block or a list produce fragments nobody can use.

    This tool splits along the structure Markdown already has. Chunks never cross a heading, paragraphs, lists, tables and code blocks stay whole where they fit, and oversized ones are split at sentence boundaries. Each chunk can start with its heading path (Guide > Install > Windows) so it stands on its own, optionally overlaps the previous chunk, and carries the file name and front matter as metadata. Token counts use the GPT-4o tokenizer, which is close to most embedding models' limits.

    • Heading-aware

      Chunks follow your document's sections and keep code blocks, lists and tables intact.

    • Exact token counts

      Sized with the GPT-4o (o200k) tokenizer, with a configurable limit and overlap.

    • Metadata included

      Source file, title, heading path, chunk index and front matter on every chunk.

    • Ready to import

      Export JSONL, JSON or CSV for vector databases, or one Markdown file for custom GPTs and projects.

    FAQ

    Frequently asked questions

    What chunk size should I use?

    Start around 500 tokens with 10% overlap. Smaller chunks (200–300) suit precise Q&A over reference docs; larger ones (800–1,500) suit narrative text where context matters. Test retrieval on real questions and adjust.

    Why prefix chunks with headings?

    A chunk like "Run the installer and restart" is ambiguous on its own. With "Guide > Install > Windows" in front, both the embedding and the model know what it's about.

    Does overlap help?

    A little overlap keeps sentences that span a boundary findable from either chunk. Because this tool already splits at headings and paragraphs, 10–15% is usually enough.

    Will the token counts match my embedding model?

    They're exact for OpenAI's current models and close for most others, since modern tokenizers produce similar counts for English text. Leave some headroom below your model's hard limit.

    Are my documents uploaded?

    No. Chunking and token counting run entirely in your browser, and your files never leave your device.

    Missing something?

    Tell us the tool you wish existed.

    Describe the job and the file types involved. The most requested tools get built first.

    Search Instant.tools

    Suggested
    Image CompressorPopularShrink JPG, PNG, WebP or SVG in this tab, lossless or at the quality you pick.ImagesMeta Tags GeneratorPopularLoad any page's meta and Open Graph tags, preview the link cards, copy clean HTML.UtilitiesHTML ViewerNewPaste HTML and watch it render live in a sandbox, at laptop, tablet or phone width.DeveloperQR Code GeneratorNewMake static QR codes for links, Wi‑Fi, email and phone. PNG or SVG, no expiry.UtilitiesImage ConverterNewConvert batches of images to PNG, JPG, WebP or AVIF, with quality and scale.ImagesImage CropperNewCrop to an exact pixel size or ratio, with social presets, rotate and flip.ImagesImage SearchNewSearch Wikimedia Commons for reusable photos and illustrations, with a credit line.ImagesHEIC to JPGNewConvert iPhone HEIC photos to JPG, PNG or WebP in bulk, with location data removed.ImagesResize ImageNewResize by pixels, percentage or longest side, one photo or a whole batch.ImagesCompress Image to KBNewGet an image under an exact size like 20, 50 or 200 KB at the best quality that fits.ImagesRemove Photo MetadataNewSee and strip EXIF, GPS and camera data from photos without re-compressing them.ImagesMerge PDFNewCombine PDFs in order, keep ranges like 1-3, 7, and add images as pages.DocumentsSplit PDFNewSplit a PDF by picked pages, ranges, every N pages, or one file per page.DocumentsOrganize PDFNewDrag PDF pages into order, rotate sideways scans and delete blank pages.DocumentsJPG to PDFNewTurn photos and scans into one PDF on A4, Letter or image-sized pages.DocumentsPDF to JPGNewSave PDF pages as JPG or PNG at 72, 150 or 300 DPI, all pages or a range.DocumentsCompress VideoNewCompress a video to a target size for Discord, WhatsApp or email.VideoCompress PDFNewShrink the images inside a PDF; text and vector graphics stay sharp.DocumentsPDF to WordNewTurn a PDF's text into an editable .docx with headings and paragraphs.DocumentsSign PDFNewDraw, type or upload a signature and place it on any page of a PDF.DocumentsOCR PDFNewMake a scanned PDF searchable and copyable with OCR, in 8 languages.DocumentsProtect PDFNewLock a PDF with AES-256 and a password, or remove a password you know.Documentsllms.txt GeneratorPopularNewBuild a root /llms.txt that points AI assistants at your best pages, and validate it.AIAI Crawler CheckerNewSee which AI crawlers (GPTBot, ClaudeBot, PerplexityBot and more) your robots.txt allows or blocks.AIJSON-LD GeneratorNewBuild schema.org structured data for articles, products, FAQs, events and more, with built-in checks.AILLM Token CounterNewCount tokens and estimate cost for GPT, Claude, Gemini and Llama prompts, with exact counts where tokenizers are public.AIMCP Config GeneratorNewGenerate MCP server config for Claude, Cursor, VS Code, Windsurf and Zed from one form.AIJSON Schema GeneratorNewGenerate a JSON Schema from example JSON, then validate data against it.DeveloperAI Prompt BuilderNewStructure prompts with a role, task, context, constraints, output format and examples, with reusable variables.AIAI Readiness CheckerNewScore how well a page can be read, understood and cited by AI search and assistants.AIRobots.txt GeneratorNewBuild a robots.txt file with crawler rules, sitemaps and AI bot controls, then test any URL against it.DeveloperSitemap VisualizerNewTurn an XML sitemap into a browsable tree of your site, with section sizes, freshness and common problems.UtilitiesSVG OptimizerNewShrink SVG files by removing editor junk and simplifying paths, with a side-by-side preview and clean code.ImagesPDF Page ExtractorNewPull chosen pages out of a PDF into a new file, in any order.DocumentsEmail HTML PreviewerNewPreview HTML emails at desktop and mobile widths and in dark mode, and catch what breaks in Gmail and Outlook.DeveloperAPI Request BuilderNewBuild HTTP requests with headers, auth and a body, send them from your browser, and copy them as cURL, fetch or Python.DeveloperWebhook TesterNewGet a private URL that captures incoming webhooks, inspect each request live, and verify its signature.DeveloperAI Coding Rules GeneratorNewWrite project rules for AI coding assistants once and export them as AGENTS.md, CLAUDE.md, Cursor rules and Copilot instructions.AIMarkdown to AI Knowledge BaseNewSplit Markdown docs into token-sized, heading-aware chunks with metadata, ready for RAG, embeddings or a custom GPT.AIBase64 Encode & DecodeNewEncode text or a file to Base64, or decode Base64 back to text. UTF-8 and URL-safe.DeveloperURL Encode & DecodeNewPercent-encode text for URLs and query strings, or decode %20-style URLs back to text.DeveloperHTML Entity Encoder & DecoderNewEscape <, >, & and quotes as HTML entities, or decode &amp; and &#233; back to text.DeveloperCase ConverterNewChange text to UPPER, lower, Title or Sentence case, or camelCase, snake_case and kebab-case.Text & WritingDiff CheckerNewCompare two texts side by side and see added, removed and changed lines, down to the word.DeveloperGoogle SERP PreviewNewSee how your title and meta description look in Google on desktop and mobile, and where they get cut off.UtilitiesPassword GeneratorNewGenerate strong random passwords with the length and characters you choose, plus a strength estimate.UtilitiesSHA Hash GeneratorNewGet SHA-1, SHA-256, SHA-384 and SHA-512 hashes or HMACs of text or a file, and verify a checksum.DeveloperCron Expression GeneratorNewBuild or paste a cron schedule, read it in plain English, and see the next times it runs.DeveloperSQL FormatterNewFormat and indent SQL queries for PostgreSQL, MySQL, SQL Server, SQLite, BigQuery and more.DeveloperImage Color PickerNewClick any pixel in an image to get its HEX, RGB and HSL code, plus the image's main colors.Design
    Categories
    Developer toolsBeautify or minify HTML, CSS, JavaScript and JSON, and poke at API responses without leaving the tab.33 toolsImage toolsShrink, convert, crop and resize images before they go on a web page, or find openly licensed ones.13 toolsUtility toolsQR codes, page screenshots, meta tags and other one-off jobs that don't fit elsewhere.13 toolsAI toolsFor sites and prompts aimed at AI assistants: llms.txt, crawler access, JSON-LD, token counts and MCP config.12 toolsFormat convertersSwitch a file or value between formats: image types, JSON and XML, hex and RGB.12 toolsPDF toolsMerge, split, reorder, sign and convert PDFs in the browser, with no upload for most of them.11 toolsText & writing toolsWord counts and quick text cleanup for drafts, meta descriptions and anything with a length limit.7 toolsDesign & color toolsHex/RGB conversion, favicon sets and other small visual assets for a site.6 toolsVideo toolsShrink a video file for email or the web without sending it to a server.1 tools