Test HTML

This HTML code tester runs your page next to the editor while you type, with CSS and JavaScript in their own tabs. Copy and paste a snippet or a whole page, then fix whatever the error list flags before you publish it. The HTML validator checks a page against the W3C standard, and the HTML code viewer previews code you already have.
★ ★ ★ ★ ★
Tiiny Host is used by 2,000,000+ happy users
Free to use · No sign-up to test · Trusted by teams at Salesforce, Airbnb, JLL, Nestlé

Share a page from the HTML code tester

Your tested code gets its own tiiny.site address

1. Press Publish

1. Press Publish

The Publish button above the preview opens Tiiny Host in a new tab with your code already loaded as a zip. A saved .html file can be dragged into the upload box too.

2. Name your link

2. Name your link

Choose a link name, for example my-test-page. The extra settings can wait until later.

3. Go live and share

3. Go live and share

Publishing takes a few seconds once your email is verified. The URL opens in any browser, so a client or teammate can check the page on a phone or a laptop.

Video

Here's how you can test your HTML

Features

A website code tester built for quick checks

⚡ Runs As You Type

The preview redraws with every edit, so the HTML runner shows what each change does to the page.

🛠️ Errors With Line Numbers

Unclosed tags and bad CSS values are listed with the line they're on, using the W3C's Nu HTML Checker for the HTML. The preview comes back once the list is clear.

⚙️️ CSS and JavaScript Tabs

Styles and scripts can go in their own tabs or inline in the HTML. Both run in the preview, so you can click a button and watch its script fire.

📋 Paste HTML Code From AI Chats

This HTML code paster takes a whole page from ChatGPT or Claude, styles and scripts included, and runs it as written.

📎 Copy the Fixed Code

When the page works, the copy button puts the open tab's code on your clipboard for your own editor.

🆓 Free and Unlimited

Run as many tests as you like. An account only comes into it when you publish.

Compared

Choosing between an HTML runner and a code playground

CodePen and JSFiddle suit longer experiments you want to save and fork, though pens and fiddles on their free plans are public. A runner fits the quick check a page needs right before it goes live.

⚡ Tiiny Host
Code playgrounds
Test without an account
The preview starts working as soon as code is pasted, with nothing to install.
✓ Yes
Varies
Nothing published until you choose
Tiiny Host keeps no copy of what you test, and nothing appears on a public profile.
✓ Yes
Saved work public on free plans
Test on a real web server
An uploaded file runs over HTTPS on a real URL, the way visitors will see it.
✓ Yes
Varies
Publish in one step
A page that passes can be online at a tiiny.site address in under a minute, or on a domain you own with Solo.
✓ Yes
Export or add-on
Whole sites as well as snippets
A zipped site with its stylesheets and images runs as a complete website.
✓ Yes
Varies
Feedback on the live page
With feedback mode on Tiny, reviewers pin comments to the published page without signing up.
✓ Yes
Comments on code
Edit after publishing
Solo's browser code editor saves fixes to the same link.
✓ Yes
Varies
Easier to Test HTML online than CodePenJSFiddleW3Schools Tryit EditorJSBinCodeSandboxReplit
Pricing

Testing is unlimited, publishing starts free

Use the tester as much as you like. When a page is ready to go online, the free plan hosts one site, and a login every three months keeps it active.

Free
$0/mo, forever
  • ✓ Unlimited testing on this page
  • ✓ 1 published site
  • ✓ Uploads up to 3 MB
  • ✓ 5,000 visits and 5 GB bandwidth a month
  • ✓ Free yourname.tiiny.site address
  • – Free sites carry a small Tiiny Host banner
Upgrade when you need more
from $5/mo, billed yearly
  • Tiny $5 · no banner, 25 MB uploads, feedback mode for reviewers, analytics
  • Solo $13 · 5 sites, browser code editor, custom 404 pages, password protection, API
  • Pro $31 · 15 sites, team seats, email capture, priority support
  • Pro Max $74 · unlimited sites and 2 TB of storage
See all plans → ⭐️ 7-day money-back guarantee

Upload size per plan

Per-file upload limit by plan
Free
3 MB
per published site
Tiny · $5
25 MB
per project
Solo · $13
75 MB
per project
Pro · $31
10 GB
account limit
Pro Max · $74
2 TB
account limit

A tested page with its CSS and JavaScript usually comes to a few hundred kilobytes. Sites carrying photography or video are the ones that outgrow the free 3 MB.

Agent friendly

Publish tested HTML from your code or your AI agent

A build step or an AI agent can post an HTML file or a zipped site to the upload endpoint with an API key. The live link comes back in the response.

REST APISimple upload endpoint. Build automations and scheduled publishing.
MCP serverClaude Code in one command. Cursor, VS Code, Windsurf, Zed, Codex, v0 with a few lines of config.
Claude connectorPublish reports and documents straight from Claude Web, Desktop and Code.
SkillInstall once and your agent can turn any file into a shareable link.
Read the API docs → API access on Solo and above
upload.sh
curl -X POST https://ext.tiiny.host/v1/upload \
  -H "x-api-key: $TIINY_API_KEY" \
  -F "files=@index.html" \
  -F "domain=my-test-page.tiiny.site"

# → https://my-test-page.tiiny.site
# PUT the same domain to replace it
Examples

Where an HTML tester helps

Learning HTML

Learning HTML

Students can try an exercise in the HTML tester and see straight away whether the markup does what they expected.

Component checks

Component checks

A component from a UI library can be tried in isolation before it's added to a project.

Bug reports

Bug reports

A broken page cut down to the smallest snippet that shows the problem is much easier for a developer to fix, especially once it's published at a link.

AI-written pages

AI-written pages

A landing page or a small game written by an AI chat can be pasted in first. Broken markup turns up here, where only you can see it.

Embed codes

Embed codes

A form or map embed can be pasted here to see whether it loads, then copied into a Custom HTML block in WordPress.

Edits to a live site

Edits to a live site

A reworked section can be checked by itself. When it looks right, the updated page can replace the old one at the same link.

Resources

Writing and publishing HTML

How to Upload an HTML File to a Website

Step-by-step instructions for putting an HTML file online, with or without a code editor.

How to Add JavaScript to HTML

Shows where script tags go in a page and when to move code into a separate .js file.

How to Edit an HTML File: Basics for Beginners

A beginner's guide to opening an HTML file and changing its code.

Frequently Asked Questions

How to test HTML code?

The quickest way is the tester at the top of this page. It has an editor for pasting HTML code and a live preview of the result, with any errors listed by line number.

How to test HTML in Notepad?

Save the file with a .html extension, for example page.html, then double-click it to open it in your browser. After each edit in Notepad, save again and refresh the browser tab to see the change.

How to test HTML locally?

Open the .html file directly in a browser, with no internet connection needed. If the page loads other files through relative paths, a small local server such as the VS Code Live Server extension gives more realistic results.

How to test your HTML code in a browser?

Every modern browser can open a saved .html file, including Chrome, Firefox, Safari and Edge. Keep the file open in a tab and refresh it after each change. If the code isn't saved as a file yet, the tester on this page runs it in the same browser tab.

How to test HTML code in Chrome?

Drag the .html file into a Chrome tab, or press Ctrl+O (Cmd+O on a Mac) to open it. Right-clicking the page and choosing Inspect opens DevTools, where you can check individual elements and read console errors.

Is my code saved when I test it here?

Tiiny Host doesn't keep what you paste. To find errors, the tester sends your HTML to the W3C's Nu HTML Checker at validator.w3.org. Pressing Publish stores the code in your browser's local storage, which is how it reaches the upload on Tiiny Host.

Can I share the HTML I have tested?

Yes. The Publish button in the tester opens Tiiny Host with your code loaded, ready for a link name. On Tiny and higher plans, feedback mode lets reviewers pin comments to the page without an account.

Can I test a full website?

The tester takes one page at a time. For a site with several pages, upload the zipped folder to Tiiny Host and click through each page at its live address, with the links and images in place.

Publish your tested HTML