Skip to content

A CSS value from the fields

Write a box-shadow value

The four lengths are offset x, offset y, blur, and spread, in pixels.

The color is appended as hex.

The work stays in this tab.

This tool runs in your browser. Turn on JavaScript to use it.

Box shadow

The sample is fixed. It uses the same rule as the form.

X
4
Y
8
Blur
16
Spread
0
Color
#1e4d3a
Result
4px 8px 16px 0px #1e4d3a

How to use it

  1. 1Fill in the fields.
  2. 2Read the result.
  3. 3Copy the line you need.

Good to know

  • The page writes the declaration value. It does not draw a preview box.
  • This page does not upload the text.
  • Text longer than one hundred thousand characters is rejected.

Questions

Does the result leave this browser?

No. The calculation finishes in the current tab.

What does this page leave out?

The page writes the declaration value. It does not draw a preview box.

What if the input is huge?

Past one hundred thousand characters, the page stops and asks you to shorten it.

Related tools

  • Write a border-radius value

    The four numbers are the top-left, top-right, bottom-right, and bottom-left corners, in pixels.

  • Write a linear-gradient

    The angle runs from 0 to 360 degrees. The two colors are the ends of the gradient.

  • Convert a color

    The same color is written as hex, RGB, or HSL depending on the file. This page parses one of those forms and prints the other two.