APImcp
GuidesDeveloper Tools
ConsoleDocsMCP
Developer Tools ⏱ 1 min read

HTML Preview API — Render HTML in Your Browser

Render HTML code as a rendered web page preview. Perfect for testing HTML snippets, email templates, and landing page components. Free API.

01

What is HTML Preview?

The HTML preview API renders HTML code as a styled web page in your browser. It takes raw HTML input and returns it as a rendered page with CSS styling applied. Perfect for testing HTML snippets, email templates, newsletter layouts, landing page components, and learning HTML.

02

How to Use It

Call GET /api/v1/html-preview?input=%3Ch1%3EHello%3C/h1%3E. Returns the HTML rendered as a full page with content-type text/html.

Try it live Test this endpoint in the interactive console
Open Console →

Frequently Asked Questions

Does it support CSS?
Yes. Include inline styles or style tags in your HTML input for full CSS rendering.