A pastebin that renders your HTML
A pastebin that renders HTML: paste at mintpage.ai/new, preview, publish, get a link that lasts 24 hours. No account. CSS and images stay; scripts are removed.
You have a chunk of HTML and someone needs to see it, not read the source: a landing-page draft, a styled report, an email layout, a mock-up your AI just wrote. A classic pastebin gives you a link to the angle brackets. What you want is a link to the rendered page, with its CSS applied, that opens on a phone.
MintPage is an HTML pastebin in that sense: paste HTML, get a hosted page at a URL. No account, no sign-up, nothing to install. The guest link lasts 24 hours, which is usually exactly what a paste needs.
Paste HTML and publish in 20 seconds
Open mintpage.ai/new. Give the page a title, paste the HTML, press Preview to see the rendered page in place, then Publish. You get a link like https://mintpage.ai/p/x7k2m9qa and a copy button. That's the whole flow.
Details that matter for HTML pastes:
- Format is detected. Leave the format on Auto: text that starts with
<is treated as HTML, everything else as Markdown. You can force either one. - Whole documents are fine. Paste a complete file,
<!doctype html>to</html>, or just a fragment. The<head>and<body>wrappers are dropped and what was inside the body becomes the page. The page title comes from the Title field, not from<title>. - The preview is the real thing. It is rendered by the same code that serves the published page, so what you see in the preview is what the link shows. If something is removed, a list of warnings tells you what and why before you publish.
- Three themes frame the content:
paper(light),ink(dark) andterminal(dark, monospace). Your own CSS applies inside the content box; the theme sets the background and fonts around it. - Your draft survives a closed tab. The text is kept in your browser for 24 hours until you publish. Nothing is stored on our side until you press Publish.
What HTML is kept, and what is removed
A published page is cleaned every time it is served, so the rules are the same for everyone. Checked against the live sanitizer:
Kept
- Text and structure: headings, paragraphs, lists, tables, blockquotes,
<pre>/<code>,<details>/<summary>,<figure>,<time>,<progress>,<meter>,<div>/<section>/<article>and the other layout tags. - Styling: inline
styleattributes and<style>blocks. Colors, fonts, grid and flexbox, borders, shadows, media queries and dark-mode queries all work. - Images:
<img>and<picture>withhttps:ordata:URLs. Images hosted elsewhere are served through MintPage's image proxy, so the original host never sees who opened your page. - Inline SVG: shapes, paths, text, gradients. Enough for icons, charts and diagrams.
- Links:
hreftohttp,httpsormailto. Every outside link getsrel="noopener noreferrer nofollow ugc";target="_blank"is kept.
Removed
<script>tags and event handlers (onclick,onload, …). Pages can't run JavaScript, ever. That includes the Tailwind CDN script: Tailwind class names won't style anything, so write the CSS in a<style>block instead.<link rel="stylesheet">,@importand CSSurl(): a page can't pull in outside stylesheets, fonts or background images. Use<img>for pictures.- Forms and controls (
form,input,button,select,textarea): pages are read-only. The text of a button stays as text. - Embeds and players (
iframe,embed,object,video,audio,canvas). javascript:links.
Your CSS is also scoped to your content box. Rules for html, body or :root style that box; position: fixed becomes position: absolute inside it; and nothing you paste can restyle the MintPage frame around your content (the small badge and the "report this page" link). To make the page wider than the default 760 px, add .mp-wrap { max-width: 1100px } to your styles.
If you need JavaScript to run, MintPage is the wrong tool; see the alternatives in the FAQ. If you need the page to look like an app without running one, the showcase has dashboards, a clickable prototype and charts built from <div>s, <progress> and inline SVG only.
Limits by plan
| Guest (no account) | Free key | Pro | |
|---|---|---|---|
| Live pages | 3 per 24 hours | 10 | 500 |
| Page size | 250 KB | 1 MB | 2 MB |
| Lifetime | 24 hours | up to 7 days | forever, or what you set |
| Badge on the page | yes | yes | no |
| Edit, pause, delete, stats | no | yes | yes |
| Custom URL slug | no | no | yes |
A paste is public: anyone with the link can open it, and there are no passwords or private pages. Guest and free pages carry a small "published by a user, not reviewed" notice and are not indexed by search engines. A free key is one email away at /start; Pro is $5 a month or $39 a year, see pricing.
The same thing from the command line
Everything /new does is one HTTP call. Put the HTML in a JSON string and post it:
curl -sS https://mintpage.ai/api/publish \
-H 'Content-Type: application/json' \
-d '{"title":"Landing page draft","format":"html","theme":"paper","content":"<style>.hero{padding:40px;background:#f4f1ea}</style><div class=\"hero\"><h1>Hello</h1><p>Draft 3.</p></div>"}'
The answer is {"url": "https://mintpage.ai/p/…", "page_id": "…"} with HTTP 201. With a key, add -H 'Authorization: Bearer mp_…' and the page gets your account's limits. What comes back when something is wrong, all returned by the live endpoint:
| Status | Meaning |
|---|---|
| 400 | A field MintPage doesn't know (for example password), or an invalid value. Nothing is published. |
| 401 | The key is malformed or revoked. |
| 413 | The content is over your plan's size limit. |
| 415 | The body isn't application/json. |
| 429 | You are over your live-page limit for now. |
To check what the sanitizer will do without publishing, post the same body to /api/preview: it returns the rendered html and the warnings list, and stores nothing. Full reference: Use it without MCP.
When the HTML comes from an AI
Most HTML pasted into MintPage was written by a model a minute earlier. Three ways to shorten the round trip:
- Hand-off link. An assistant with no tools can give you a link of the form
mintpage.ai/new#t=<title>&html=<url-encoded html>. Opening it fills the paste box; you review the preview and publish. The content lives in the URL fragment, so it never reaches our server until you press Publish. - MCP tool. Agents that speak MCP (Claude, ChatGPT, Cursor, Claude Code, Codex CLI, Gemini CLI, n8n and others) can call
publish_pagewithformat: "html"directly athttps://mintpage.ai/mcpand hand you the URL. Setup per client is under Guides. - Ask for sanitizer-safe HTML. Tell the model: inline CSS in a
<style>block, no scripts, no external stylesheets, images byhttps:URL or inline SVG. The result renders exactly as written.
FAQ
Is this really a pastebin? Pastes expire. Guest pages last 24 hours and are then gone; the URL shows a short "expired" notice. With a free key a page lasts up to 7 days and you can delete it early. Pro pages stay until you remove them.
Can I edit a paste after publishing? With a key, yes: the dashboard and the update_page tool replace the content behind the same URL. Guest pages can't be edited; publish a new one.
Does it run JavaScript or load external CSS? No, by design: every page on mintpage.ai is served without scripts and without outside stylesheets, so a paste can never attack the people who open it. If you need a live app, host it on a static host or a JS playground instead.
Why does my Tailwind page look unstyled? Tailwind's CDN build is a script, and scripts are removed. Paste the generated CSS in a <style> block, or ask the model for plain CSS.
Why is my background image missing? CSS url() is removed. Use an <img> tag with an https: or data: URL; it will be proxied and shown.
Do I get a link preview in Slack or X? Yes. Every page has a title, description and a 1200×630 image for link cards.
What about Markdown? Same box, same link: see Markdown pastebin. Need a single page to stay up for longer, or at a URL you choose? See host a single HTML page and the temporary web page guide for the 24-hour case.
How do I report a paste? Every guest and free page has a "Report this page" link in its footer, or use /report. Details are on /security.
Try it in one line
No account needed. Pages last 24 hours as a guest, 7 days with a free key, forever on Pro.
claude mcp add --transport http mintpage https://mintpage.ai/mcp