Skip to content

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.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · HTML snippet generator

Runs in your browser · 100% local

El HTML usa estilos en línea para poder pegarlo en cualquier plantilla. El texto se escapa para evitar inyección.

Vista previa
Código HTML
<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>
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Select the component: button, card, notice, form or table.

02

Change the title, the text, the main colour and the corner radius.

03

Check the preview, copy the HTML or download it as a file.

Examples

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.

Reference guide

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

Frequently Asked Questions

Inline styles are the most compatible option with email clients, although some may strip out certain properties. Test the result in the client you intend to use.

Related tools

Other tools that can help with similar tasks.

More at Web development→
HTML snippet generator with preview · ByTooly