Home › Developer Tools › CSS Text Shadow Generator

CSS Text Shadow Generator

Build a text-shadow visually: stack as many layers as you like, tune offset, blur, color and opacity, and preview it on your own words, font and colors. Start from presets such as neon, 3D, outline, retro and fire, then copy clean CSS.

Last updated:

Presets
Shadow

Shadow layers

    The first layer is drawn on top.

    Edit layer 1

    px
    px
    px
    %
    Generated CSS
    
            
    Advertisement
    Advertisement

    How to use the CSS Text Shadow Generator

    1. Pick a preset like Neon, 3D or Outline, or start from the default soft shadow.
    2. Type your own text and set the font, size, weight, text color and background to match your design.
    3. Select a layer and adjust its x and y offset, blur, color and opacity. Add more layers for glow, depth or outlines.
    4. Reorder or hide layers with the arrow and eye buttons to see how each one contributes.
    5. Press Copy CSS and paste the rule into your stylesheet.

    text-shadow syntax

    text-shadow: <offset-x> <offset-y> <blur-radius>? <color>?

    ValueMeaningExample
    offset-xMoves the shadow right (positive) or left (negative)2px
    offset-yMoves the shadow down (positive) or up (negative)2px
    blur-radiusSoftens the shadow; 0 gives a sharp copy of the text4px
    colorAny CSS color; defaults to the text colorrgba(0, 0, 0, 0.3)

    Combine several shadows with commas. The first one is painted on top, so put the small, sharp layers first and the large, soft glows last.

    Recipes for popular effects

    EffectHow it is built
    Subtle readability shadow0 1px 2px rgba(0, 0, 0, 0.3) for light text on photos
    NeonLight text on a dark background, 0 offsets, blur doubling from 4px to 80px, white near the letters and a bright color further out
    3D / extrudedSharp shadows offset 1px, 2px, 3px… downwards in slightly darker grays, then a few soft dark shadows for depth
    OutlineEight sharp shadows offset by 1–2px in every direction, all in the outline color
    Long shadowDozens of sharp shadows offset 1px, 2px, 3px… diagonally, in a darker shade of the background
    LetterpressText slightly darker than the background plus 0 1px 0 rgba(255, 255, 255, 0.75)
    Anaglyph / glitchTwo sharp shadows, red to the left and cyan to the right

    Tips

    • Use rgba() colors for natural shadows: a black shadow at 20–40% opacity blends with any background.
    • Large blurs on big headings look great, but keep body text shadows tiny or none to keep it readable.
    • text-shadow also applies to ::first-letter, ::selection and SVG text, and it can be animated with transitions for hover glows.

    Frequently asked questions

    What is the syntax of text-shadow?

    text-shadow: offset-x offset-y blur-radius color. The two offsets are required; blur is optional and defaults to 0 (a sharp copy); the color defaults to the text color. Separate several shadows with commas.

    How do I add multiple text shadows?

    List them in one text-shadow declaration separated by commas, for example text-shadow: 0 0 5px #fff, 0 0 20px #ff00de. The first shadow is drawn on top and the following ones underneath it.

    How do I make a neon text effect in CSS?

    Use light-colored text on a dark background and stack several shadows with 0 offset and growing blur: a small white glow (0 0 5px #fff) close to the letters, then colored glows at 10px, 20px, 40px and 80px. The Neon preset does exactly this.

    Can text-shadow create an outline?

    Yes. Four to eight sharp shadows (blur 0) offset by 1 to 2px in every direction draw an outline around the letters. For thicker or perfectly even outlines, -webkit-text-stroke or paint-order with SVG text can work better.

    Why does text-shadow not have spread like box-shadow?

    The CSS specification defines text-shadow without spread or inset. To fake spread, repeat a shadow with the same color, or stack several sharp offset copies as the Outline preset does.

    Does text-shadow affect performance or accessibility?

    A few shadows are cheap to render, but dozens of large blurred layers on big blocks of text can slow scrolling on low-end devices. Shadows can also reduce legibility: keep body text shadows subtle and check color contrast between text and background.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    CSS Box Shadow GeneratorDesign layered CSS box shadows with a live preview, presets and one-click Copy CSS.Glassmorphism CSS GeneratorDesign frosted-glass UI cards with blur, transparency and border sliders, then copy the CSS.CSS Button GeneratorDesign CSS buttons with gradients, borders, shadows and hover and active states, then copy the code.CSS Gradient GeneratorDesign linear, radial and conic CSS gradients with draggable stops and export CSS or PNG.3D Text GeneratorRender extruded 3D text with depth, bevel, materials and rotation; export a transparent PNG.Animated Text GIF MakerCreate animated text GIFs with typing, blink, bounce, rainbow or scroll effects; GIF or WebM.Graffiti Text GeneratorTurn words into graffiti lettering with outlines, 3D drop, paint drips and a wall. PNG download.Neon Text GeneratorMake glowing neon sign text on brick or dark walls, with flicker, and save it as PNG or GIF.Open Graph PreviewPaste OG tags and preview how links look on Facebook, X and LinkedIn.YouTube Embed Code GeneratorCreate responsive YouTube embed code with start time, autoplay, loop and privacy mode.CSS Border Radius GeneratorRound each corner, draw elliptical 8-value radii or random blob shapes and copy the CSS.CSS Flexbox GeneratorBuild flexbox layouts visually: set container and item properties, then copy the CSS and HTML.Twitter Card GeneratorCreate X / Twitter Card meta tags with Open Graph fallbacks, character counters and a live preview.CSS Grid GeneratorDraw CSS grid layouts: set tracks and gaps, drag to name areas, then copy the CSS and HTML.PX to REM ConverterConvert px to rem or em and back, with a 1-100px table and a whole-CSS converter.HTML Editor (Live Preview)Write HTML, CSS and JavaScript and see a live, sandboxed preview as you type.HTML to JSX ConverterConvert HTML to valid React JSX: className, htmlFor, style objects, self-closing tags and events.CSS Clip-Path GeneratorDraw CSS clip-path shapes by dragging points: polygons, circle, ellipse and inset. Copy the CSS.CSS Animation GeneratorCreate CSS keyframe animations from 23 presets with live preview, timing controls and Copy CSS.CSS Triangle GeneratorMake CSS triangles in 8 directions with the border trick or clip-path. Set size and color, copy CSS.CSS Loader GeneratorPick from 14 pure CSS spinners and loaders, set color, size and speed, then copy the HTML and CSS.Cubic Bezier GeneratorDrag the control points to design a CSS easing curve, compare it with linear and copy cubic-bezier().CSS Filter GeneratorAdjust blur, brightness, contrast, hue, sepia and drop-shadow on an image and copy the CSS filter.CSS Specificity CalculatorCalculate CSS selector specificity (a, b, c), including :is(), :not(), :has() and :where(), and compare.Google Maps Embed GeneratorTurn an address or coordinates into responsive Google Maps iframe embed code, no API key.Neumorphism CSS GeneratorDesign soft UI neumorphic shapes with live preview and copy the box-shadow CSS.SVG Wave GeneratorMake layered SVG waves for section dividers and export SVG, PNG or a CSS background.SVG Blob GeneratorGenerate random organic SVG blob shapes with gradients and export SVG, PNG or CSS clip-path.CSS Clamp GeneratorTurn min/max sizes and viewport widths into a fluid CSS clamp() value in rem and vw.CSS @font-face GeneratorTurn font files or URLs into ready-to-paste @font-face rules with weights, styles and a preview.CSS Media Query GeneratorBuild @media rules for widths, orientation, dark mode and hover, or get framework breakpoints.CSS Scrollbar GeneratorStyle scrollbars: width, colors, radius and hover, with ::-webkit-scrollbar and scrollbar-color CSS.CSS Sprite GeneratorPack many icons into one sprite sheet PNG and get CSS classes with background-position.CSS Text Gradient GeneratorMake gradient text with background-clip:text: color stops, angle, font preview and fallback CSS.CSS Toggle Switch GeneratorDesign pure-CSS toggle switches: size, colors, shape and animation. Copy accessible HTML + CSS.CSS Tooltip GeneratorBuild pure CSS tooltips: position, arrow, colors, padding and animation. Copy HTML and CSS.HTML Form BuilderDrag and drop form fields with labels and validation, then copy accessible HTML and CSS code.Iframe GeneratorCreate iframe embed code: size or responsive ratio, border, allow, sandbox, lazy load, live preview.CSS Color Filter GeneratorTurn a HEX color into a CSS filter that recolors black icons and SVGs, with an accuracy score.CSS Gradient Animation GeneratorCreate animated gradient backgrounds: pick colors, angle and speed, preview live and copy the CSS.CSS Hover Effects GeneratorPick button, link and image hover effects, tweak colors and timing, and copy the HTML and CSS.CSS InlinerMove CSS from style blocks into inline style attributes so HTML emails render in every client.CSS Shape Divider GeneratorCreate wave, tilt, curve and triangle section dividers and copy the SVG, HTML and CSS.CSS Transform GeneratorRotate, scale, skew and translate an element with sliders and copy the CSS transform code.Font Pairing ToolPreview Google Font heading and body pairs on real layouts and copy the embed code and CSS.HTML Accessibility CheckerPaste HTML to find WCAG accessibility problems with impact level, the failing element and a fix.HTML Image Map GeneratorDraw clickable rectangle, circle and polygon hotspots on an image and get image map HTML.SVG ViewerOpen or paste SVG code to preview it live with zoom, backgrounds, size info and PNG export.Pathfinding VisualizerAnimate BFS, DFS, Dijkstra, A* and greedy search on a grid with walls, weights and mazes.PX to VW ConverterConvert pixels to vw and vh for any viewport size, and vw/vh back to px, with breakpoint tables.SVG Path EditorEdit an SVG path d attribute visually: drag points, edit commands, convert, scale and minify.SVG to CSS Data URITurn SVG code into a small URL-encoded data URI for CSS backgrounds, with Base64 size comparison.SVG to JSXTurn SVG code into a clean React component: camelCase attributes, style objects, TypeScript.Tailwind CSS Cheat SheetSearchable Tailwind class to CSS reference with live previews, class decoder and color palette.Web App Manifest GeneratorCreate a PWA manifest.json and every app icon size from one image, downloaded as a ZIP.CSS Background Pattern GeneratorMake pure-CSS stripes, dots, checkerboard, zigzag and grid backgrounds and copy the code.
    See all 52 Web, HTML & CSS Tools →