{"uid":"cap_4WKy28BatECDGr-70wMfO","slug":"402utils-html-to-markdown-converter-5f6772ea","name":"402utils HTML-to-Markdown Converter","description":"Micro API utilities for AI agents, priced per call and paid in USDC over the x402 protocol. PDF, screenshot, OG-image and more — no signup, no keys.","url":"https://402utils.com/v1/html-to-md?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"HTML document or fragment to convert (non-empty, max 5 MB UTF-8)."},"mode":{"enum":["full","article"],"type":"string","default":"full","description":"'full' converts the whole document. 'article' first extracts the main content with Mozilla Readability — boilerplate (nav, footer, sidebars) is dropped, title/byline/excerpt are returned, and relative URLs are resolved against https://input.invalid/ so they stay recognisable; when no article is detected the response falls back to full-document conversion with articleFound=false."}}},"responseSchema":{"type":"json","example":{"mode":"full","markdown":"# Q3 results\n\nRevenue grew **18%**.\n\n| Region | Growth |\n| --- | --- |\n| EMEA | +21% |"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":{"p10Cents":"0.3000","medianCents":"0.3000","p90Cents":"0.3000","minCents":"0.3000","maxCents":"0.3000","p95Cents":"0.3000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VZcbFKrXZ64AAsas-GIYO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts raw HTML into clean GitHub-Flavored Markdown, with an optional article extraction mode that uses Mozilla Readability to isolate main content and strip boilerplate.","exampleAgentPrompt":"Take this raw HTML and convert it to GitHub-Flavored Markdown using article mode so it strips out the nav, footer, and sidebars and just gives me the main content with the title and byline.","exampleUseCases":[{"title":"Extract article from webpage HTML","prompt":"I've got the raw HTML from this news article page — can you run it through article mode to pull out just the main story, strip all the navigation and ads, and give me clean markdown with the title and author?"},{"title":"Convert HTML tables to GFM markdown","prompt":"I have some raw HTML that contains a bunch of data tables and code snippets — convert it to GitHub-Flavored Markdown so the tables come out as proper pipe tables and the code blocks are fenced correctly."},{"title":"Clean up scraped HTML content","prompt":"I scraped this HTML from a documentation page but it's full of nav menus, footers, and sidebar junk — can you convert it to clean readable markdown with just the actual content?"}],"resultDescription":"Returns a Markdown string in GFM format with ATX headings, fenced code blocks, pipe tables, strikethrough, and task lists. In article mode, also returns title, byline, excerpt, and an articleFound boolean. Script, style, and iframe text are always stripped. If no article is detected in article mode, falls back to full-document conversion with articleFound=false.","failureModes":["HTML payload exceeds 5 MB limit — returns error","Empty HTML body provided — returns validation error","Invalid mode value (not 'full' or 'article') — returns validation error","Malformed JSON envelope — returns parse error","Article mode finds no identifiable article — falls back to full conversion with articleFound=false"],"whenToPreferThis":"Use this endpoint when you have raw HTML in hand and need clean GFM Markdown output without fetching any URLs yourself. Prefer article mode when the HTML is a full webpage with navigation and boilerplate you want discarded. Prefer over general-purpose LLM conversion when you need deterministic, structured GFM features like pipe tables, fenced code blocks, and task lists reliably preserved.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:25:24.063Z","isFirstParty":false,"canonicalSlug":"402utils-html-to-markdown-converter-5f6772ea"}