contrast‑color() Preview - Online Automatic Text Color
Test the upcoming contrast‑color() CSS function. Get white or black automatically for a given background. See it live.
UD5 Toolkit
Type an Emmet abbreviation and see the expanded HTML instantly
| Syntax | Example | Result |
|---|---|---|
element | div | <div></div> |
#id | div#hero | <div id="hero"> |
.class | span.highlight | <span class="highlight"> |
> (child) | ul>li | li nested inside ul |
+ (sibling) | h1+p | h1 followed by p |
^ (climb up) | div>p^span | span as sibling of div |
* (multiply) | li*3 | 3 <li> elements |
$ (numbering) | li.item$*3 | item1, item2, item3 |
{} (text) | p{Hello} | <p>Hello</p> |
[] (attributes) | a[href=#] | <a href="#"> |
() (grouping) | (h1+p)*2 | repeats the group twice |
lorem | p.lorem10 | 10 lorem ipsum words |
$$ for zero-padded numbering (01, 02…)$@- for reverse numbering$@3 to start numbering from 3lorem with any element: p*3.lorem5.wrap → <div class="wrap">:text, :email, :submit for form inputs() for claritydiv.container>ul>li*5—and instantly generating the corresponding HTML structure. This tool lets you test and preview those expansions live in your browser.
div.container → creates a div with class "container"ul>li*3 → creates a ul with 3 list itemsa[href="#"]{Click me} → creates a link with href and textdiv>h1+p → creates a div containing an h1 and a paragraph.row>.col*3 → creates Bootstrap-style grid columnsp.lorem20 → generates a paragraph with 20 lorem ipsum words$ symbol is an auto-incrementing counter. When you write li.item$*5, Emmet generates <li class="item1">, <li class="item2">, and so on up to item5. Use $$ for zero-padded numbers (01, 02…), $@- for descending order, and $@5 to start counting from 5. This is incredibly useful for generating numbered lists, galleries, grid items, and navigation menus.
m10 expands to margin: 10px;, p20-10 becomes padding: 20px 10px;, bgc becomes background-color: #fff;, and fz14 becomes font-size: 14px;. This tool focuses on HTML expansion, but Emmet's CSS capabilities are equally powerful and available in all supported editors.
Test the upcoming contrast‑color() CSS function. Get white or black automatically for a given background. See it live.
Enter a URL and see the full redirect chain with status codes and response times. Also validates against your chosen rule.
Convert standard HTML into Pug (formerly Jade) syntax. Clean, indented output. For Node.js templating. Client‑side.
Paste regular HTML and instantly get valid React JSX with proper self‑closing tags and className attributes.
Enter a GraphQL endpoint, write a query, and see the response. Add headers and variables. Simple testing client.
Connect a game controller and see every button press, axis movement, and vibration test. Uses the Gamepad API.
Connect your MIDI keyboard and see pressed notes visually on a piano roll. Check velocity, channel, and aftertouch. No DAW needed.
Connect a gamepad and see all button presses and axis movements visually. Check that every input is detected correctly.
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.
Paste HTML and instantly remove all tags, leaving only the text content. Optional keep line breaks. Quick cleaning.
Write JavaScript code and see the output or console.log results immediately. Safe iframe sandbox. For quick experiments.
Experiment with CSS container queries. Resize a container and see the styles change according to its size, not the viewport. Learn the new spec.
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.
Press any key and see it light up on a standard QWERTY layout. Check functionality or demonstrate shortcuts.
Reduce your HTML file size by stripping whitespace, comments, and optional closing tags. Secure browser‑based.
Paste multiple HTML snippets (header, footer) and a main content, then combine them into a single preview. Static site helper.
Enter a URL and drag a slider to change the viewport width smoothly. See exactly where your layout breaks. No iframe limits.
Look up common acronyms and abbreviations from a built-in list. Search by acronym or meaning. Always expanding, no internet needed.
Paste or write a CSS gradient value and instantly see the rendered output. Debug and iterate on gradients quickly. Local preview.
Press keys on your physical keyboard and see them highlighted on a virtual keyboard. Detects multi-key rollover. Quick hardware check.
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.
Build and test regular expressions against sample text. Real-time match highlighting, capture groups display, and flavor options. All inside your browser.