HTML snippet generator with preview
Choose a component, adjust the text and colours, and copy a self-contained snippet with inline styles. The preview updates instantly in an isolated iframe.
Workspace · HTML snippet generator
El HTML usa estilos en línea para poder pegarlo en cualquier plantilla. El texto se escapa para evitar inyección.
<a href="https://bytooly.space/" style="display:inline-block;padding:13px 22px;border-radius:14px;background:#1a73e8;color:#fff;font-family:system-ui,sans-serif;font-size:15px;font-weight:600;text-decoration:none"> Descubre ByTooly </a>
How to use it
Select the component: button, card, notice, form or table.
Change the title, the text, the main colour and the corner radius.
Check the preview, copy the HTML or download it as a file.
Examples
Call-to-action button
A link with a solid background, white text and a radius of 14 px, ready to be pasted into a landing page.
Information notice
A block with a border and a solid background in the chosen colour, without relying on any external style sheets.
What you need to know
Styles are written inline so that the snippet works in any template, email or CMS without loading additional CSS. The text entered is escaped before being inserted, so that no unwanted tags or scripts are interpreted.
The preview runs in a sandboxed iframe, separate from the rest of the page. The generated code is a starting point: for a real-world project, it is advisable to move the styles to a stylesheet and check the contrast, the visible focus area and the tap size.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
HTML Formatter
Indents and formats HTML to make it easy to read.
CSS Formatter
Format CSS code with well-indented rules, properties and curly brackets.
Border-radius generator
Adjust the four corners individually and copy the CSS whilst viewing the preview.
