Tools

Free HTML Tools

Copy-paste helpers for cleaner HTML tags, head markup, snippets, and publishing workflows.

Available tools

HTML Tools you can use now

Html

ARIA Live Region Generator

Generate accessible ARIA live region HTML snippets with role, aria-live, aria-atomic, and aria-relevant attributes. Includes optional JavaScript update function.

Open tool

Html

CSP Hash Generator

Generate CSP hash values for inline scripts and styles. Hash exact code content with SHA-256, SHA-384, or SHA-512 and get the matching CSP directive snippet.

Open tool

Html

HTML Sanitizer Config Builder

Generate Sanitizer API and DOMPurify allowlist configurations. Choose content-type presets or customize allowed tags and attributes for safe HTML rendering.

Open tool

Html

SRI Hash Generator

Generate Subresource Integrity hashes for script and stylesheet files. Paste code, upload a local file, or reference a CDN URL and get the integrity attribute for your HTML tags.

Open tool

Html

Preload Tag Builder

Generate correct preload link tags for fonts, hero images, CSS, and scripts with the right as and crossorigin attributes.

Open tool

Html

Trusted Types Policy Generator

Generate a Trusted Types policy with configurable createHTML/createScript/createScriptURL operations and matching Content-Security-Policy headers for Nginx and Apache.

Open tool

Html

URLPattern Tester

Test URL patterns with named groups, wildcards, and regex constraints. Generate JavaScript URLPattern code and see live match results with extracted parameters for multiple test URLs.

Open tool

Html

contenteditable plaintext-only Generator

Generate accessible contenteditable=plaintext-only HTML markup with placeholder styling, focus states, and ARIA attributes. Pasting rich text strips formatting automatically -- no JavaScript needed.

Open tool

Html

Directory Upload Input Generator

Generate HTML input markup with the webkitdirectory attribute for folder selection, drag-and-drop zone, file list display with webkitRelativePath, and support for single-file, multiple-file, and directory modes.

Open tool

Html

scrollend Event Snippet Generator

Generate JavaScript snippets using the scrollend event that fires when scrolling fully completes including momentum and inertia, with debounce comparison to show why native scrollend is more accurate.

Open tool

Html

PerformanceObserver Snippet Generator

Generate JavaScript snippets using PerformanceObserver to monitor Core Web Vitals (LCP, INP, CLS, FID, FCP, TTFB) and other performance metrics in real-time with good/needs-improvement/poor threshold classifications.

Open tool

Html

RegExp.escape() Helper

Escape special regex characters in user input using the native RegExp.escape() method. Generate safe dynamic regex patterns with comparison to old manual escaping.

Open tool

Html

Intl.DurationFormat Generator

Format durations with locale-aware Intl.DurationFormat. Supports long, short, narrow, and digital styles in 6+ locales. No more moment-duration-format.

Open tool

Html

Custom Highlight API Generator

Generate JavaScript and CSS snippets for the Custom Highlights API to style arbitrary text ranges without modifying the DOM. Uses CSS.highlights registry and ::highlight() pseudo-element for find-in-page, syntax highlighting, and search results.

Open tool

Html

WebTransport URL Template Helper

Generate a JavaScript WebTransport connection snippet with URL template, bidirectional streams, and datagram support for low-latency client-server communication over HTTP/3 (QUIC).

Open tool

Html

JSON Formatter & Validator

Format, validate, minify, and tree-view JSON data. Detects trailing commas, shows error position with context. All processing happens in the browser -- no data sent anywhere.

Open tool

Html

JSON to CSV Converter

Convert JSON arrays to CSV/TSV with configurable delimiter, optional header row, nested field flattening via dot notation, and download-ready output.

Open tool

Html

YAML JSON Converter

Bidirectional YAML to JSON and JSON to YAML converter. Handles nested objects, arrays, and scalar values. Useful for config files, GitHub Actions, front matter, and Docker Compose.

Open tool

Html

JSONPath Tester

Test JSONPath expressions against JSON data. Supports dot notation, bracket notation, wildcards, array indices, and filter expressions. Shows matched values with paths.

Open tool

Html

JSON Schema Generator & Validator

Generate JSON Schema from sample JSON data, or validate JSON against an existing schema. Supports Draft 04/07/2020-12. Infers types, marks required fields, includes examples.

Open tool

Html

Regex Tester and Debugger

Test regular expressions against text with match highlighting, capture groups, and replacement preview. All processing is local in the browser.

Open tool

Html

Markdown Preview Editor

Split-screen Markdown editor with live GitHub-Flavored Markdown preview. Supports headings, bold/italic, links, code blocks, tables, and task lists.

Open tool

Html

QR Code Generator

Generate QR codes as SVG for URLs, text, email, phone, and WiFi. Customizable colors, size, and includes SVG code output for use in HTML.

Open tool

Html

Image Compressor and Converter

Compress and convert images locally using Canvas API. Resize by width/height, choose JPEG/PNG/WebP output, and adjust quality. No upload -- all processing is local.

Open tool

What this collection helps with

HTML mistakes are rarely dramatic, but they can be expensive when they reach production. A broken head tag, inconsistent snippet, or missing attribute can affect previews, accessibility, crawlability, and maintenance. This collection keeps common markup work visible and easy to review.

Best for

  • Preparing HTML snippets for static pages and documentation.
  • Reducing hand-written tag mistakes before publishing.
  • Keeping repeated page markup consistent across a small site.

Common use cases

  • Create structured head markup from clear input fields.
  • Prepare reusable snippets for posts, pages, and small tools.
  • Check generated HTML before it is added to a template.

Task guide

Use HTML tools when you need structured head markup, link relationships, or embed code for a page. Start by identifying what you need: preload and prefetch hints for performance-critical resources, link rel tags for SEO and documentation relationships, or responsive iframe embeds for external content. Review the generated output against your page structure before pasting it into your template or CMS. For repeated snippets across many pages, keep a consistent pattern by using the same tool inputs for every post.

Publishing checklist

  • Verify generated tags match the HTML5 doctype requirements for your document.
  • Check that all attribute values, such as href and src paths, resolve to the correct URLs in your final output.
  • Confirm preload and prefetch hints reference actual resources that exist on your server or CDN.
  • Test responsive iframe embeds at multiple screen widths, especially the narrowest breakpoint.
  • Validate the output against the W3C markup validator before publishing.

FAQ

Questions about html tools

Can I paste generated snippets directly into production?

Use generated snippets as a starting point and review them in your template. The final markup depends on your framework, content management system, and document structure. Always validate output before deploying.

Where in the document should preload tags go?

Preload link tags belong in the head element. They tell the browser to fetch resources early during page load. Placing them outside the head, such as in the body, may cause some browsers to ignore them.

How many link rel values should a single page have?

Include only the link relationships that apply to the page. Common values include canonical, stylesheet, and alternate hreflang links. Adding unnecessary relationships like prev and next on pages outside a paginated sequence adds noise without benefit.

Do responsive iframe embeds affect page speed scores?

Iframes can slow page load because they load external content. The responsive iframe embed generator helps prevent layout shift but does not control the external page size or resource count. Consider lazy loading iframes below the fold.

Should I use preload or prefetch for my hero image?

Use preload for resources needed during the current navigation, such as a hero image above the fold. Use prefetch for resources likely needed during a future navigation, such as the next page post. The wrong choice can waste bandwidth on resources the browser does not need yet.