Copy as HTML

Browser

Why I built it

When I want to study a component I like on another site or try it in a draft, I wanted to grab it in one click instead of collecting its code piece by piece.

What it does

  • The picked element goes to the clipboard as one piece of HTML with inline styles
  • Only styles that differ from the defaults are written, so the output stays lean
  • Web fonts in use are added to the top of the output
  • Verified by comparing the copy with the original pixel by pixel

Keys

↑ ↓
Parent / child
Enter
Copy
Shift + click
Copy without fonts
Esc
Cancel

Built for my own use. Not published yet.