Skip to main content

CSS List Style Generator

API reference

Generate CSS list-style for bullet and numbered lists — pick the marker type and position, use a custom emoji or checkmark bullet, and color or resize the ::marker. Live preview, copy the CSS and HTML.

Input

One item per line. Used for the preview and HTML snippet.

Used when Marker Type is "Custom". Any character or emoji; add a trailing space for a gap.

Styled with ::marker, so the item text keeps its own color.

Ordered lists only. Leave blank to start at 1.

Ordered lists only.

Output

Your list will appear here.

list-style declaration
 
CSS
 
HTML
 
Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/css-list-style-generator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": "First item\nSecond item\nThird item",
    "listKind": "ul",
    "type": "disc",
    "customMarker": "✓ ",
    "position": "outside",
    "markerColor": "#2563eb",
    "markerSize": "100",
    "start": "",
    "reversed": "false"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `css-list-style-generator` tool (CSS List Style Generator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/css-list-style-generator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="CSS List Style Generator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

The CSS list-style shorthand controls how the bullets or numbers of a <ul> or <ol> look: the marker type (disc, square, roman numerals, a custom character…) and whether the marker hangs outside the text or sits inside it. This generator lets you pick both against a live preview, color and resize the marker with ::marker, and copy the CSS and HTML.

How to use it

  1. Enter your list items, one per line. They're only used for the preview and the HTML snippet.
  2. Choose the list element. Use <ul> when order doesn't matter, <ol> for steps, rankings or anything counted.
  3. Pick a marker type. Bullets (disc, circle, square), counters (decimal, alpha, roman, Greek, CJK and more), disclosure triangles, none, or Custom for any character or emoji.
  4. Set the position. Outside keeps wrapped lines aligned with the text; inside puts the marker in the first line's text box.
  5. Style the marker with a color and size. These go into a li::marker rule, so the item text keeps its own color.
  6. For ordered lists, optionally set a start number or count down with reversed.
  7. Copy the list-style declaration, the full CSS, or the matching HTML.

Custom bullets without images

The old way to get a checkmark or arrow bullet was list-style-image with a tiny PNG, or list-style: none plus a ::before pseudo-element. Modern browsers accept a plain string as the marker type, so list-style: "✓ " outside; is enough. Add a trailing space inside the quotes for a gap between the marker and the text.

Styling the marker with ::marker

::marker targets just the bullet or number of each list item. It supports a limited set of properties — mainly color, font-size, font-weight and content — which covers the most common request: a colored bullet next to normal text. Before ::marker, that required wrapping every item's text in a <span>.

Inside or outside?

Use outside (the default) for most lists: multi-line items stay neatly indented. Use inside when the list sits in a tight box or a table cell where a hanging marker would be clipped.

Does list-style: none hurt accessibility?

In Safari, a list with list-style: none may stop being announced as a list by VoiceOver. If the content really is a list, add role="list" to the <ul> or <ol>.

For other text styling, try the CSS Text Decoration Generator. To turn plain lines into a formatted list in another format, use the List Converter.

Privacy

Everything runs in your browser. Nothing you type is sent to a server.

list-style-typelist-style-position::markerbullet pointsordered listunordered listulolcustom bulletsemoji bullets

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.