Skip to content

A CSS value from the fields

Write a border-radius value

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

The result is a CSS declaration.

The work stays in this tab.

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

Border radius

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

Top left
8
Top right
8
Bottom right
0
Bottom left
0
Result
border-radius: 8px 8px 0px 0px;

How to use it

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

Good to know

  • Percentages are not accepted on this page.
  • 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?

Percentages are not accepted on this page.

What if the input is huge?

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

Related tools

  • Write a box-shadow value

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

  • Convert px and rem

    rem is relative to the root font size, not to the parent. This page divides or multiplies by the root you set.

  • 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.