CSS Neon Glow Generator
Generate animated CSS neon glow text effects with live preview
このツールについて
Create stunning neon sign effects for web projects entirely in CSS. Type your text, choose a neon colour, adjust glow intensity, set font size, and toggle animations — including a realistic flicker and a smooth pulse. The tool stacks multiple text-shadow layers to produce authentic glow depth. The live preview renders on a dark background (black, navy, or dark gray) so you can see the true effect. Copy the generated CSS with one click and drop it straight into your stylesheet.
使い方
- 1 Type the text you want to display in the text field.
- 2 Pick a neon colour using the colour swatch or enter a hex value.
- 3 Drag the Glow Intensity slider to increase or decrease the halo size.
- 4 Set Font Size to match your layout needs.
- 5 Choose an animation: Static, Flicker, or Pulse.
- 6 Select a background colour for the preview.
- 7 Click 'Copy CSS' to copy the generated code to your clipboard.
How CSS fakes a glowing neon tube
Real neon signs glow because excited gas radiates light that spreads softly into the dark around the tube. CSS has no "glow" property, so this generator imitates that halo with the one tool that does spread color outward from text: text-shadow. The trick is that text-shadow accepts a comma-separated list of shadows, all drawn at once. By stacking several copies of the same colored shadow at increasing blur radii — and making the wider ones more transparent — you get a tight, bright core surrounded by a faint, far-reaching aura, exactly like light bleeding off a glass tube.
The five-layer recipe this tool generates
For your chosen color and an intensity value i from 1 to 10, the generator emits five shadow layers with these blur radii and opacities:
| Layer | Blur radius | Opacity | Role |
|---|---|---|---|
| 1 | 4 × i px | 1.0 | Bright inner edge |
| 2 | 8 × i px | 0.9 | Core glow |
| 3 | 16 × i px | 0.7 | Mid halo |
| 4 | 32 × i px | 0.5 | Outer halo |
| 5 | 48 × i px | 0.3 | Faint far aura |
Each shadow has zero horizontal and vertical offset (0 0), so the glow radiates evenly in all directions rather than falling to one side. The color stays constant across all five layers; only the blur grows and the alpha fades. That fading is what sells the effect — a glow that stayed fully opaque at 48px of blur would look like a flat smudge, not light.
A worked example
Pick cyan (#00ffff) at intensity 5. The tool converts the hex to RGB (0, 255, 255) and multiplies each base blur by 5, producing this text-shadow:
0 0 20px rgba(0,255,255,1), 0 0 40px rgba(0,255,255,.9), 0 0 80px rgba(0,255,255,.7), 0 0 160px rgba(0,255,255,.5), 0 0 240px rgba(0,255,255,.3)
The matching .neon-text rule sets that shadow plus the cyan fill color, a 700 font weight, your chosen size, and letter-spacing: 0.1em so adjacent letters' halos don't merge into mush. The wrapper .neon-container carries the dark background.
Adding animation
Two optional @keyframes animations make the sign feel alive. Flicker runs over 3 seconds and, at a few irregular frames (around 20%, 24%, and 55%), drops opacity and removes the shadow entirely before snapping back — the stutter of a failing tube about to die. Pulse runs over 1.5 seconds and breathes smoothly between full intensity and a dimmer version computed at intensity − 3, like a sign on a slow dimmer. Both loop infinitely. Leave it on Static for a steady, always-on look.
Practical tips for a convincing sign
- Demand a dark background. Neon only reads as neon against near-black. On white, the transparent outer layers vanish and you are left with plain colored text. The preview's black, navy, dark-gray, and near-black options exist for exactly this reason — and you must give your real page a dark backdrop too.
- Pick saturated, light colors. Cyan, magenta, hot pink, and lime glow best because their bright channels survive the alpha fade. A dark maroon or navy has too little luminance to throw a visible halo.
- Use a thin or condensed font. A heavy display face fills the area where the glow wants to live. Light strokes leave room for the halo to surround each letter cleanly.
- Keep intensity moderate for body text. At intensity 10 the far aura reaches 480px and will overlap neighboring elements. High intensity suits a single hero word; dial it down for anything you expect people to read.
Common mistakes
- Applying it to long paragraphs. Overlapping glows from many lines turn into an unreadable blur. Neon is a headline effect, not a body-text style.
- Forgetting performance. Large blur radii are expensive to repaint. Animating flicker or pulse on dozens of elements can stutter on weaker devices — reserve animation for a few key words.
- Skipping a fallback color. The
colorproperty is what shows if shadows are ever stripped (some email clients, reduced-effects modes). Keep that fill color readable on its own.
Does this run privately?
Yes. The CSS is generated entirely in your browser; the live preview renders locally and the copy button puts plain text on your clipboard. Nothing you type is sent anywhere, and no external fonts or libraries are required for the effect itself.