CSS Text Shadow Generator
Create text shadows with explicit offsets, blur, color and opacity. Reorder layers, inspect an editable text specimen and copy the authored text-shadow declaration.
Build a text-shadow stack
- Edit the sample text and each enabled layer’s horizontal offset, vertical offset, blur radius, color and opacity. Fields accept hundredths; sliders provide quick whole-unit adjustments.
- Add, duplicate, exclude, remove or move layers. The first enabled layer in the list is frontmost among shadows. Disabled layers keep their drafts but are omitted from CSS.
- Inspect the current CSS and native preview, then select Copy CSS. Only the shadow declaration is copied; specimen text, typography and background remain preview context.
Understand the authored layers
Each layer emits horizontal offset, vertical offset and nonnegative blur in CSS pixels, followed by an explicit RGBA color. Negative offsets move left or up; zero blur gives a sharp shifted shadow. The property follows glyphs rather than the element’s rectangular box.
The first listed shadow paints in front of later shadows, while these outer shadows remain behind the text. Moving layers can change overlapping colors. This stack is different from a filter pipeline where each operation receives the previous result.
Shadow opacity becomes alpha in that shadow’s color. For example, 37.5% becomes exactly 0.375 without passing through an eight-bit alpha channel. Text opacity is a separate preview color setting, so transparent text can still have visible shadows.
An enabled transparent layer remains in the declaration. Excluding every layer or clearing the list emits text-shadow: none;. Explicit none resets inherited shadows; an empty invalid declaration is not a substitute.
Order, color and transparent-layer examples
The example’s first layer is -3.25px horizontally, 6.5px vertically and 0px blur, with #336699 at 37% opacity. Its channels are 51, 102 and 153, and its alpha is 0.37. A second orange layer uses 0px, -2px, 12px blur and 80% opacity.
Moving the orange layer first changes the comma-separated order without changing either layer’s values. Use the preview to inspect overlap; the tool does not merge duplicates, sort colors or optimize invisible layers away.
A zero-offset, zero-blur transparent black layer is valid authored CSS even if no shadow ink is visible. Disabling it instead removes it from the stack; if no enabled layer remains, the output is the explicit none declaration.
Authoring and preview limits
This editor supports up to twelve layers, offsets from -64 to 64 CSS pixels, blur from 0 to 64, six-digit hex colors and opacity from 0 to 100%, with hundredth precision. It intentionally authors an established subset, without spread, inset, currentColor, arbitrary units or CSS import; newer specifications discuss additional syntax.
The specimen uses your plain text and a local system font. Font fallback, glyph shapes, size, line breaks and wrapping affect appearance. Copy includes only text-shadow, so a receiving page can look different. This is not a contrast, readability or pixel-match certification.
Shadows do not enlarge text layout or scrollable overflow. The padded preview is an approximate viewing area, and edges can clip blur or offsets. Scrolling follows the text’s layout and cannot guarantee access to every painted shadow pixel.
Invalid enabled-layer drafts remove current CSS and the styled specimen until repaired. Disabled parameter drafts are ignored until re-enabled. Invalid preview-only settings withhold the specimen while valid CSS remains available; empty sample text is allowed.
Local styling without uploaded text
The tool adds no upload, remote font, saved settings history, input-bearing link or telemetry containing your specimen and settings. Copy is explicit. Existing site services, extensions and copies you retain are outside a universal privacy or erasure promise.
Text-shadow questions
Sources
Specifications and reference material for the authored subset and its preview.
- W3Cw3.orgCSS Text Decoration Level 3Published candidate recommendation defining the established text-shadow property and paint order.
- W3Cdrafts.csswg.orgCSS Text Decoration Level 4 editor’s draftNewer draft discusses additional syntax outside this editor’s supported subset.
- MDNdeveloper.mozilla.orgMDN: text shadowsPractical guidance for offsets, blur and layered text shadows.
- MDNdeveloper.mozilla.orgMDN: rgb()Color channels and alpha syntax used in the copied declaration.
Reviewed 13 November 2026.
The preview is a native rendering with finite space; it is not a cross-browser pixel or no-clipping guarantee.
Related tools
SVG to PNG
Convert a local SVG file or pasted markup into PNG, with explicit dimensions, transparency and bundled fonts.
Open tool — SVG to PNGCSS Filter Generator
Order and repeat CSS effects, compare a specimen and copy the exact filter declaration.
Open tool — CSS Filter GeneratorFluid Font Size Calculator
Create root-relative CSS from viewport endpoints and inspect the copied size model.
Open tool — Fluid Font Size CalculatorCSS Button Generator
Style native button states, inspect keyboard focus and copy HTML and CSS.
Open tool — CSS Button GeneratorCSS Border Radius Generator
Edit eight corner radii, preview a box and copy CSS in pixels or percentages.
Open tool — CSS Border Radius GeneratorCSS Grid Generator
Build a bounded CSS Grid example with editable tracks, placement and named areas. Preview it, copy CSS or HTML and download the same standalone example.
Open tool — CSS Grid GeneratorCSS Flexbox Generator
Build a Flexbox example with container and item controls, explicit layout axes, matching CSS and HTML, and a local complete-example download.
Open tool — CSS Flexbox GeneratorCSS Transform Generator
Compose repeatable 2D CSS transforms, edit px or percentage translation and origin, inspect a reference box and copy the exact current declarations.
Open tool — CSS Transform GeneratorCSS Box Shadow Generator
Create ordered CSS box-shadow layers with a live preview and copyable code.
Open tool — CSS Box Shadow GeneratorImage Watermark
Add a text or logo watermark to a batch of images, review each result and download individual files or a ZIP.
Open tool — Image WatermarkCSS Gradient Generator
Create linear or radial CSS gradients with editable colors, opacity and stops.
Open tool — CSS Gradient GeneratorColor Converter
Convert supported sRGB HEX, RGB and HSL literals with alpha, explicit precision and current code Copy.
Open tool — Color ConverterImage to Text (OCR)
Recognize printed text in local PNG or JPEG images, choose a language and review or correct the result before copying or downloading.
Open tool — Image to Text (OCR)QR Code Reader
Read one QR code from a local PNG or JPEG and inspect its text or content bytes without opening links.
Open tool — QR Code ReaderColor Contrast Checker
Compare foreground and background colors, adjust opacity and check WCAG numerical contrast thresholds for text and essential interface details.
Open tool — Color Contrast CheckerPrint Size & Resolution Calculator
Calculate print dimensions, required pixels and effective PPI with fit or crop.
Open tool — Print Size & Resolution CalculatorAspect Ratio Calculator
Find a width-to-height ratio or calculate a matching pixel size from one target dimension.
Open tool — Aspect Ratio CalculatorImage Compressor
Try to fit a JPEG, PNG or WebP within a target file size, with measured results and optional smaller dimensions.
Open tool — Image CompressorHEIC to JPG
Convert supported HEIC photos locally into full-size JPG copies, with quality and background controls and verified individual or ZIP downloads.
Open tool — HEIC to JPGImage Converter
Convert supported PNG, JPEG and WebP images locally with batch targets, transparency, background and quality controls, then review and download the encoded files.
Open tool — Image ConverterPhoto Collage Maker
Arrange local photos in a grid, adjust crops and spacing, and download PNG or JPEG.
Open tool — Photo Collage MakerRotate & Flip Images
Rotate or mirror a local batch of static PNG, JPEG and WebP images, then review and download the processed results.
Open tool — Rotate & Flip ImagesImage Cropper
Crop one local JPEG, PNG or WebP to exact pixels with visual and numeric controls. Download PNG or JPEG.
Open tool — Image CropperImage Resizer
Resize a JPG, PNG or WebP image by pixels or percentage, preview the result and download it.
Open tool — Image Resizer