Neon Text CSS GeneratorGlow, animation and PNG export

Build neon text in your browser. Preview the glow, copy the HTML and CSS, add flicker, pulse or scroll animation, and download a transparent PNG.

LIVE PREVIEW
LOADING...

Design Preview

Text and glow
Text
Font
Font size (px)80
Letter spacing (px)2
Glow spread (px)8
Glow intensity5
Colors
Text color
Neon color
Background color
Animation
Export
PNG size

The PNG is a still image. Animation works only in the copied CSS.

Generated HTML
<div class="neon-wrap">
  <div class="neon-text">NEON
GLOW</div>
</div>
Generated CSS
@import url('https://fonts.googleapis.com/css2?family=Tilt+Neon&family=Neonderthaw&family=Monoton&family=Orbitron:wght@700&family=Exo+2:wght@600&family=Pacifico&family=Playfair+Display:wght@700&family=Press+Start+2P&display=swap');

.neon-wrap {
  background: #0a0a0a;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-text {
  color: #ffffff;
  font-family: 'Tilt Neon', sans-serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: center;
  white-space: pre-wrap;
  text-shadow: 0 0 8px #ff2bd6, 0 0 16px #ff2bd6, 0 0 24px #ff2bd6, 0 0 32px #ff2bd6, 0 0 40px #ff2bd6, 0 0 2px rgba(255,255,255,0.8);
}

How to make neon text with CSS text-shadow

Neon text in CSS is a stack of text-shadow layers: wide, soft shadows in the neon color make the glow, and a small white shadow sits close to the letters. This page builds that stack from your settings and gives you HTML and CSS you can paste.

Text color fills the letters and Neon color colors the glow. Glow intensity sets how many shadow layers are stacked (1 to 10), and Glow spread (px) sets how much blur each layer adds. Layer number n gets a blur of n × Glow spread (px). The defaults, 5 layers at 8px, give shadows of 8, 16, 24, 32 and 40px.

Pick Flicker, Scroll or Pulse under Animation and the keyframes are added to the CSS. To use the text as an image, click Download PNG, with an optional transparent background.

Uses: dark-mode headings, YouTube thumbnails, neon sign mockups

Dark-mode headings and hero text

Paste the CSS onto a hero title, a logo in the nav bar or a limited-time banner on a dark page. Copy HTML gives you the matching markup.

YouTube thumbnails and channel art

Choose 1280 × 720 (YouTube thumbnail) under PNG size, turn on Transparent background and download a PNG you can layer over a screenshot in your image editor.

Neon sign mockups for bars and cafés

Test the wording, font and color of an "OPEN" or menu-board sign before you commit to a design for print or a custom sign.

Stream overlays and social posts

Export a transparent PNG at 1920 × 1080 (HD) or a 1080 × 1080 (square post) image to layer over video or photos in your editing or streaming software.

Make glowing text and copy the code in 5 steps

  1. Type your words in Text. Press Enter to add a second line.
  2. Choose a typeface under Font. Tilt Neon is selected by default.
  3. Set Text color (white or a very light tint works well) and Neon color. Check Transparent background if you only need the PNG over your own artwork.
  4. Adjust Glow spread (px) and Glow intensity until the preview looks right, then choose None, Flicker, Scroll or Pulse under Animation.
  5. Click Copy CSS and Copy HTML to paste into your site, or pick a PNG size and click Download PNG.

Note: The HTML and CSS under Generated HTML and Generated CSS update as you change settings.

Before you paste: fonts, background, PNG size

  • Fonts: the CSS starts with an @import from Google Fonts, so the page needs a connection to Google Fonts to show the chosen font. Without it the browser falls back to a default font.
  • Background: the CSS sets the background on .neon-wrap. With Transparent background on, it writes background: transparent, so the glow shows over your own page color.
  • Scroll: .neon-wrap gets overflow: hidden and the text gets white-space: nowrap. Use one line of text, because line breaks are collapsed into spaces.
  • PNG: a still image in the size you pick under PNG size, drawn in your browser. It has no animation. If the text is wider than 88% of the image, or taller than 90%, it is scaled down to fit.

Neon text color combinations and glow settings

Starting values to try. Set them with the color pickers and sliders, then adjust by eye.

StyleText / Neon colorGlow spread (px) / Glow intensityAnimation
Cyberpunk cyan#ffffff / #00f0ff6 / 4Pulse
Retro bar sign pink#ffe6f7 / #ff2bd68 / 5Flicker
Arcade green#eaffe5 / #39ff1410 / 5Scroll
Warm orange diner#fff4e0 / #ff6a006 / 5None
Vaporwave purple#ffffff / #b026ff8 / 6Pulse

How the glow is built
The generated text-shadow lists one shadow per layer, each with a blur of layer number × Glow spread (px) in the neon color, and then adds a 0 0 2px rgba(255,255,255,0.8) shadow at the end. More layers make a longer, softer falloff. Fewer layers with a small spread give a tight tube look.

Background color
The default background is #0a0a0a, a near-black. Dark backgrounds show the glow best. The glow is a semi-transparent shadow, so on white or light gray it fades into the page.

Neon text animation in CSS: flicker, pulse and a scrolling marquee

What each Animation option writes into the CSS, and what to check before you ship it.

Flickering neon text with @keyframes

Flicker writes a neon-flicker rule that sets opacity to 0.3 at 20%, 24% and 55% and back to 1 elsewhere. It runs with infinite alternate, so the pattern plays forward and then backward. Cycle (sec) sets the length of one run from 1 to 20 seconds.

Pulsing glow: animating text-shadow

Pulse changes text-shadow between your normal glow and a version with Glow spread (px) doubled at the 50% mark, using ease-in-out infinite. Animating a shadow makes the browser repaint the text each frame, so use it on a heading or a logo rather than on large blocks of text.

Scrolling text without the marquee tag

The marquee element is obsolete in HTML. Scroll uses transform: translateX() from 100% to -100% with linear infinite timing. The wrapper has overflow: hidden and the text has white-space: nowrap. Moving a transform avoids changing the layout on every frame.

Turning animation off for reduced motion

The generated CSS does not include a reduced-motion rule, so add one if your visitors may need it: @media (prefers-reduced-motion: reduce) { .neon-text { animation: none; } }. Flicker is the animation most likely to bother sensitive users.

Neon text not glowing? Common CSS problems and fixes

The text just looks blurry, not like neon

A single text-shadow only softens the letters. Neon has a bright center and a glow that fades outward, and one shadow cannot make both.

💡 See the solution▼
Raise Glow intensity to 3 or more so several shadow layers are stacked, and set Text color to white or a very light tint. The tool writes one shadow per layer plus a small white shadow.

There is no visible glow on a white or light background

The glow is a semi-transparent shadow. On white, light gray or a busy photo, it blends into the background and the text looks plain.

💡 See the solution▼
Use a dark Background color such as the default #0a0a0a. If you export a transparent PNG, place it over a dark layer.

Text color and Neon color are the same, so the center is flat

When the letters and the glow share one saturated color, the letters do not read as a bright tube and the glow looks like a halo of the same color.

💡 See the solution▼
Keep Text color near white and set Neon color to the saturated color. For example, #ffffff with #00f0ff gives a cyan tube.

The font changes to a default after pasting the CSS

The CSS begins with an @import for Google Fonts. A CSS @import is ignored if it comes after other rules, and some site builders strip it.

💡 See the solution▼
Paste the generated CSS at the very top of your stylesheet, or load the same Google Fonts URL with a link tag in your page head. The page also needs to reach Google Fonts.

Thick letters fill in and the text is hard to read

Heavy fonts, a large Glow spread (px) and many layers can fill the gaps inside letters like e, a and 8 with glow.

💡 See the solution▼
Switch to a thinner font such as Tilt Neon or Orbitron, lower Glow spread (px), and reduce Glow intensity until the letter shapes are clear.

Questions about glowing text CSS and PNG export

Q.How do I make neon text with CSS?

Q.

A. Stack several text-shadow layers in the neon color, each with a larger blur, and add a small white shadow. This page builds that stack for you. With the defaults (Glow spread (px) 8, Glow intensity 5) it writes shadows with 8, 16, 24, 32 and 40px blur, plus a 2px white shadow. Click Copy CSS and Copy HTML, then paste both into your page.

Q.How do I make neon text with a transparent background?

Q.

A. Check Transparent background, pick a size under PNG size, and click Download PNG. The PNG has no background fill, so you can place it over any image in an editor. The glow edges are semi-transparent, so the text looks best on dark backgrounds. On a white background the glow can look faint.

Q.How do I make neon text flicker with CSS?

Q.

A. Select Flicker. The CSS adds a neon-flicker @keyframes rule that drops opacity to 0.3 at 20%, 24% and 55% of the cycle, and applies it with animation: neon-flicker infinite alternate. Cycle (sec) sets the length from 1 to 20 seconds. Lower numbers flicker faster.

Q.How do I make glowing text scroll like a marquee?

Q.

A. Select Scroll and set Scroll time (sec). The CSS moves the text with transform: translateX(), from 100% to -100%, in a linear infinite loop, and the wrapper hides overflow. This replaces the obsolete marquee tag. A higher number scrolls slower, and one line of text works best.

Q.Why does my neon text look blurry instead of glowing?

Q.

A. A single blurred shadow only softens the letters. A neon look needs a bright text color on top and several shadow layers behind it. Set Text color to white or a very light tint, pick a saturated Neon color, and raise Glow intensity to 3 or more. If the letters fill in, lower Glow spread (px) or switch to a thinner font.

Q.Which fonts work best for neon text, and can I use them commercially?

Q.

A. Tilt Neon, Neonderthaw and Monoton imitate neon tube lettering, and thin strokes keep the glow from filling in the letters. The fonts in the list come from Google Fonts, which distributes them under open-source licenses such as the SIL Open Font License that allow commercial use. Check each font's license page before you use it in a product.

Q.Can I save animated neon text as a GIF or video?

Q.

A. Not on this page. Download PNG saves one still image with no animation. To get motion, copy the HTML and CSS into a web page. If you need a clip, record that page with a screen recorder.

User Feedback & Request

Your feedback
makes this tool better.

Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.

Send feedback