Geometry & Color

Random CSS Box-Shadow & Border-Radius Generator

Generate a random CSS box-shadow and border-radius combination with a live preview and ready-to-copy code — a quick way to break out of the same three shadow styles.

Cryptographically secure Instant, in your browser Free, no sign-up

Generate

Your result will appear here

How the Random CSS Box-Shadow & Border-Radius Generator works

Rather than picking every shadow value completely independently (which tends to produce shadows that look broken or unnatural), values are drawn from ranges tuned to produce a visually coherent result: vertical offset is always kept larger than horizontal offset since real-world light sources are typically overhead, blur radius scales with the overall shadow size, and opacity stays in a range that reads as a shadow rather than a solid dark shape.

Border-radius randomly chooses between a uniform radius (all four corners equal) and four independent corner values for a more organic, asymmetric shape — both are valid, real CSS patterns used in modern design.

How to use it

1
Choose a shadow styleSoft & subtle for gentle card-style shadows, Bold & dramatic for something more pronounced, or Any for a full mix.
2
GenerateXrandom produces a random box-shadow and border-radius combination, shown live on a preview box, with the exact CSS underneath.
3
Copy the codeCopy the CSS directly into your stylesheet, or use it as a starting point to tweak further.
Advertisement

Frequently asked questions

Will every generated shadow look good?

Most will, since values are constrained to realistic ranges, but design taste is subjective — regenerate if a particular result doesn't fit your project.

What's the difference between soft and bold style?

Soft produces smaller offsets, tighter blur, and lower opacity for a subtle card-like shadow; bold uses larger values across the board for a more dramatic, floating effect.

Can I use this for dark mode designs?

The generated shadow uses a dark, semi-transparent color suited to light backgrounds; for dark mode, you'd typically want a different approach (like a lighter glow or border instead of a shadow).