CSS & Design

CSS Box Shadow Generator

Create CSS box shadows with visual controls, multiple layers, and Material Design presets.

Your files stay on your device - processed locally via WebAssembly, never uploaded

Shadow Layers

Horizontal Offset0px
Vertical Offset4px
Blur Radius15px
Spread Radius0px
Opacity15%

CSS

box-shadow: 0px 4px 15px 0px #00000026;

Presets

🔒 All shadow generation happens in your browser. Nothing is sent anywhere.

Share this tool with othersHelp others discover free tools
Embed this tool on your website

Copy this code to add the CSS Box Shadow Generator to your site for free. It runs entirely in your visitors' browsers - no API key, no usage limits.

<iframe src="https://optipix.art/embed/box-shadow-generator" width="100%" height="600" style="border:1px solid #e4e4e7;border-radius:8px;" title="CSS Box Shadow Generator by OptiPix" loading="lazy"></iframe>
<p style="font-size:12px">Free tool by <a href="https://optipix.art/box-shadow-generator">OptiPix CSS Box Shadow Generator</a></p>

❤️ Love this tool? Support our team.

No ads, no tracking, no limits. Tips keep 104 tools free for everyone.

$

Secure payment via Stripe · No account needed

About CSS Box Shadow Generator

Last updated: May 2026

OptiPix CSS Box Shadow Generator 允许您通过滑块直观地设计盒阴影,滑块可用于水平偏移、垂直偏移、模糊半径、扩展半径、带不透明度的阴影颜色以及内嵌切换。添加多达 5 个分层阴影,以实现复杂、逼真的效果。从预设中选择,包括微妙、中等、大、Material Design 1-5 级、新拟态、硬阴影和内发光。实时在卡片元素上预览阴影。更改预览背景颜色以测试不同表面上的阴影可见性。一键复制生成的 CSS。所有操作都在您的浏览器本地进行。

How It Works

该工具根据滑块值构建 CSS box-shadow 字符串。每个阴影层格式为“offsetX offsetY blur spread color”(如果切换了“inset”,则带有“inset”前缀)。多个图层用逗号连接。预览元素通过内联样式应用生成的 CSS。

Use Cases

  • 为 Web 应用程序设计卡片阴影效果
  • 创建 Material Design 风格的阴影层次结构
  • 构建自定义按钮悬停和活动状态阴影
  • 设计新拟态的软 UI 元素
  • 在不同背景颜色上测试阴影可见性

You Might Also Like

If you find CSS Box Shadow Generator useful, check out these related tools: CSS Gradient Generator, CSS Border Radius Generator, and Glassmorphism Generator. All tools run entirely in your browser with no uploads or signups required.

Frequently Asked Questions

我可以叠加多少个阴影?
最多 5 个独立阴影,每个阴影都有自己的偏移量、模糊、扩展、颜色和内嵌设置。叠加的阴影可创建更逼真、更复杂的效果。
有哪些可用的预设?
微妙、中等、大、Material Design 1-5 级、新拟态(凹/凸)、硬阴影(无模糊)和内发光。
我能创建内嵌阴影吗?
是的。切换任何阴影层的内嵌选项即可创建内阴影,这对于按下按钮和输入字段很有用。
我可以更改预览背景吗?
是的。使用背景颜色选择器测试您的阴影在不同颜色表面上的外观。
是否将任何数据发送到服务器?
否。该工具在您的浏览器本地生成 CSS 字符串。

Related Tools

More CSS & Design Tools

All 102 Tools

Image CompressorBackground RemoverVideo CompressorImage UpscalerOCR Text ExtractorFormat ConverterImage ResizerEXIF RemoverFace BlurDepth EstimationQR Code GeneratorWatermark MakerColor Palette ExtractorPhoto FiltersImage to PDFObject DetectionImage ClassifierImage CaptionerAI Image GeneratorMeme GeneratorGIF MakerPhoto Collage MakerImage CropPhoto EffectsImage to SVGColor ChangerNoise RemoverPhoto RestorationColor PickerFavicon GeneratorImage to Base64Image Metadata ViewerImage AnnotatorPassport Photo MakerDocument ScannerASCII Art GeneratorImage ComparisonSprite Sheet GeneratorObject RemoverPanorama MakerWord CounterCase ConverterLorem Ipsum GeneratorUUID GeneratorUnix Timestamp ConverterText DiffURL Encoder / DecoderHTML Entity Encoder / DecoderBase64 Text Encoder / DecoderText to Binary / Hex / OctalHash GeneratorJSON Formatter / ValidatorRandom String GeneratorCSV ↔ JSON ConverterMarkdown EditorUnit ConverterPercentage CalculatorBMI CalculatorAge CalculatorTip CalculatorCSS Gradient GeneratorCSS Box Shadow GeneratorCSS Border Radius GeneratorGlassmorphism GeneratorNeumorphism GeneratorCSS Text Shadow GeneratorFlexbox PlaygroundCSS Grid GeneratorAudio TrimmerAudio ConverterAudio MergerAudio RecorderVideo to Audio ExtractorAudio Speed ChangerAudio Volume BoosterRingtone MakerVocal RemoverText to SpeechSpeech to TextAudio Noise RemoverAudio EqualizerAudio EffectsVideo TrimmerVideo MergerVideo ResizerVideo Speed ChangerVideo RotatorVideo to MP4 ConverterAdd Music to VideoMute VideoVideo LooperReverse VideoVideo ScreenshotAdd Subtitles to VideoVideo WatermarkScreen RecorderWebcam RecorderSlideshow MakerVideo FiltersCron Expression BuilderRegex TesterUnix Timestamp Converter