HTML to Pug Converter - Online Indented Template Syntax
Convert standard HTML into Pug (formerly Jade) syntax. Clean, indented output. For Node.js templating. Client‑side.
UD5 Toolkit
<!--#include virtual="..." --> directives and instantly see the resolved output, without needing a web server configured for SSI. This is invaluable for frontend developers who want to prototype page layouts with reusable components like headers, footers, and navigation bars before deploying to a server.<!--#include virtual="file.html" --> (for including files), <!--#echo var="..." --> (for displaying variables), and <!--#if expr="..." --> (for conditional logic). SSI is lightweight and doesn't require a full scripting language like PHP.virtual specifies a path relative to the web server's document root (e.g., virtual="/includes/header.html" resolves from the root), while file specifies a path relative to the current document's location (e.g., file="header.html" looks in the same directory). In this previewer tool, both attributes behave similarly — they look up files defined in the Include Files Manager below the editor.<!--#include ... --> directives, those will also be resolved recursively. The tool also includes circular reference detection — if file A includes file B and file B includes file A, the tool will detect the loop and stop further resolution, displaying a warning in the preview to help you debug.#include directive, which is the most commonly used SSI feature. Other directives like #echo, #set, #if, #exec, and #flastmod are not currently simulated, as they require server-side context (environment variables, CGI execution, file modification timestamps) that cannot be replicated purely in the browser. For full SSI testing, a local Apache server with mod_include enabled is recommended.<!--#include ... --> directives. Then, add your included files (like header.html, footer.html, nav.html) using the Include Files Manager below by clicking "Add File" and pasting their content. The right panel shows a live preview of your fully resolved page. You can edit any file at any time and see updates instantly.<?php include 'file.php'; ?>); and iframes or Web Components for client-side includes. SSI remains useful for lightweight server-side includes without needing a full backend stack.<!--#include ... --> syntax, you can adapt it to simulate PHP includes by simply using SSI-style comments in place of PHP include() or require() statements during prototyping. Replace <?php include 'header.php'; ?> with <!--#include virtual="header.php" --> in your draft HTML, define the content in the file manager, and preview the result. The resolved output will look the same..htaccess settings, MIME types, character encoding headers, or server environment variables. For production-grade SSI testing, you should still validate your includes on an actual Apache server with mod_include enabled and the proper Options +Includes directive set in your server configuration or .htaccess file.Convert standard HTML into Pug (formerly Jade) syntax. Clean, indented output. For Node.js templating. Client‑side.
Enter a URL and fetch its Twitter card meta tags. See a live preview of how the tweet will appear. Debug social sharing.
Paste HTML and detect unclosed tags, invalid nesting, and duplicate IDs. Lightweight client‑side validation.
Paste regular HTML and instantly get valid React JSX with proper self‑closing tags and className attributes.
Test the new HTML popover attribute for creating accessible tooltips, menus, and dialogs without JavaScript. Copy code snippets.
Build a complex mailto: link with to, cc, bcc, subject, and body. Get the HTML anchor tag. Local.
Convert currencies using a built‑in table of approximate fixed rates. Useful for quick estimates without live data. Local.
Paste an HTML snippet and convert it into an SVG image that visually replicates the DOM. Useful for creating static snapshots. Local canvas rendering.
Paste HTML and instantly remove all tags, leaving only the text content. Optional keep line breaks. Quick cleaning.
Enter a URL and see a preview of how it will appear when shared on Facebook, Twitter, LinkedIn. Detect missing tags.
Type raw HTML and see the escaped version, then see how it renders when unescaped. Understand encoding better.
Create a customizable scrolling marquee banner. Copy the HTML and CSS. For retro web projects or fun.
Paste CSV and get a beautiful HTML table with sortable headers (optional). Copy the full HTML/CSS snippet. Local.
Write or paste an HTML snippet and generate a PDF using the browser's print engine. Customize page size and margins.
Paste an HTML `<table>` snippet and instantly get a clean Markdown table. Supports colspan and alignment hints. Local.
Paste lines of text and automatically convert to an HTML ordered list with correct numbering and indentation.
Type a few words and see them rendered at every heading size (h1–h6) with your chosen font. Perfect for design systems.
Reduce your HTML file size by stripping whitespace, comments, and optional closing tags. Secure browser‑based.
Preview how a CMYK value will look on screen (approximate). Compare with its RGB equivalent. Pre‑press check.
Apply a stipple or halftone effect to preview how an image might look when laser engraved. Download black‑and‑white output.
Arrange virtual fabric squares or triangles on a grid to preview a quilt pattern. Change colors and sizes. Export layout.
Paste your Swagger/OpenAPI YAML and see a rendered API documentation preview with expandable endpoints. All local rendering.
Enter a URL to see exactly what Open Graph and Twitter card tags will be shown when shared on social media. Fetch from browser.
Design a clean, professional email signature with your photo, links, and disclaimers. Copy the HTML to use in Gmail/Outlook.
Paste Lottie JSON code or upload a .json file and see the animation play. Control speed and loop. Perfect for developers.
Convert plain text lines into HTML ordered or unordered lists. Instantly copy the generated HTML to paste into your website. No hassle, fully browser-based.
Strip HTML tags and convert web content to plain Markdown. Preserve headings, lists, and links. Perfect for content migration. All processing in browser.
Write or paste HTML, CSS, and JavaScript and instantly see the rendered output in a sandboxed iframe. A handy frontend prototyping tool.
Write Markdown and see the formatted HTML preview in real time. Syntax highlighting and GitHub-flavored Markdown support. No upload, fully local.
Tidy up messy HTML code with our online formatter and beautifier. Indent and clean your markup, preview the output instantly. No data is uploaded, everything runs in your browser.