FormatterHQ

HTML Marquee Generator

Create scrolling or bouncing text with the classic <marquee> element. Set direction, speed, behavior, loop count, colors and font size, and preview the result live.

Output HTML
Ready.

How to use the Marquee Generator

  1. Type the text you want to scroll.
  2. Choose the direction, behavior (scroll, slide or alternate), speed and number of loops.
  3. Set text color, background color, font size and dimensions, and decide whether it should pause on hover.
  4. Check the live preview and copy the generated code.

The marquee element, generated for you

The <marquee> tag makes text or images scroll across the page. It first appeared in Internet Explorer in the 1990s and became a symbol of early web design. It is still rendered by today's major browsers, which makes it a quick way to add a ticker or a nostalgic effect. This marquee generator writes the tag with all its attributes and shows a live preview.

Example

<marquee direction="left" behavior="scroll" scrollamount="6" bgcolor="#fef3c7"
  width="100%" onmouseover="this.stop()" onmouseout="this.start()"
  style="color:#b91c1c;font-size:18px">Big summer sale</marquee>

Marquee generator options and attributes

  • direction – left (default), right, up or down. Vertical directions work best with a fixed height.
  • behavior – scroll moves the content across and restarts; slide moves it in once and stops; alternate bounces it back and forth between the edges.
  • scrollamount – the distance in pixels per step, which effectively sets the speed. 6 is the browser default; higher is faster.
  • loop – how many times to scroll. -1 (or no value) means forever.
  • bgcolor, width, height – background color and size of the scrolling area.
  • Pause on hover – adds onmouseover="this.stop()" and onmouseout="this.start()" so visitors can read the text.

Should you still use marquee?

Honestly, only with care. The element is deprecated in the HTML standard: browsers keep it for compatibility, but it is not recommended for new sites. Moving text is also an accessibility concern. WCAG 2.2 success criterion 2.2.2 requires that content which moves for more than five seconds can be paused, stopped or hidden, and constant motion can be distracting or uncomfortable for some users. That is why pause-on-hover is enabled by default here, though it does not help keyboard or touch users.

Good uses include retro-themed pages, intranet notices and demos. For a production site, a CSS animation gives you the same effect with more control and the ability to respect the user's "reduce motion" setting:

.ticker { overflow: hidden; white-space: nowrap; }
.ticker span { display: inline-block; animation: slide 12s linear infinite; }
@keyframes slide { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; } }

Troubleshooting scrolling text

  • The motion is jerky. A high Speed (scrollamount) moves the text in large jumps. Values between 3 and 6 give smoother, more readable movement.
  • Vertical text does not appear to move. With up or down, set a Height; without one, the box is only as tall as the text and there is no room to scroll.
  • Nothing moves in a newsletter. Many email clients strip or ignore the element, so treat marquee text in email as a static line.
  • Bouncing text is clipped. With alternate, content wider than the box cannot bounce cleanly; shorten the text or widen the marquee.

Related tools

Try the generated code in the real-time HTML editor to combine it with the rest of your page, or build a clickable version with the HTML link generator and place the link inside the marquee. Everything is generated in your browser.

Frequently asked questions

Does the marquee tag still work?
Yes. Chrome, Edge, Firefox and Safari still render the marquee element for compatibility, but the element is deprecated, so it is not recommended for new production sites.
How do I change the scrolling speed?
Change the scrollamount value. It sets how many pixels the text moves per step; larger numbers scroll faster. The browser default is 6.
How can I make the text bounce back and forth?
Set behavior to alternate. The content then moves to the edge, reverses and moves back continuously.
Is scrolling text bad for accessibility?
It can be. Moving content should be possible to pause, and some users find motion distracting. Keep text short, enable pause on hover, or use a CSS animation that respects prefers-reduced-motion.

Last updated October 3, 2026

Related tools

Favicon Generator Make favicon.ico, Apple touch and Android icons plus site.webmanifest and HTML tags from an image or from text/emoji. ZIP download. Hreflang Tag Generator Generate hreflang annotations for multilingual sites as <link> tags, sitemap entries or HTTP headers, with code validation. .htaccess Redirect Generator Generate Apache .htaccess 301/302 redirects from old → new URL pairs, plus force-HTTPS, www and trailing-slash rules. HTML Link Generator Create an HTML anchor tag with link text, title, target _blank, nofollow or sponsored rel and simple inline styling. HTML Table Generator Generate HTML table code with any number of rows and columns, header row, caption, border and padding - with live preview. Hyperlink Generator Generate a hyperlink as HTML, Markdown, BBCode and plain text at once - ready for websites, READMEs, forums and e-mails. HTML Minifier Minify HTML online including inline CSS and JavaScript. Pug to HTML Converter Compile Pug templates to HTML online: tags, #id/.class shortcuts, attributes, block text, interpolation and comments. Responsive Website Tester Preview any website on phone, tablet, laptop and desktop screen sizes side by side to check your responsive design. Text to HTML Converter Paste formatted text from Word, Google Docs or a web page, or type plain text, and get clean HTML code. Removes inline styles, classes and Word markup. Word to HTML Converter Convert Word .docx documents to clean, semantic HTML with headings, lists, tables, links and images — right in your browser. BBCode to HTML Converter Convert forum BBCode such as [b], [url], [quote], [list] and [code] into clean, safe HTML markup instantly.