Skip to main content
>_devtools

JavaScript Object to CSS

Convert a CSS-in-JS style object to plain CSS, flattened or with native nesting, without running your code.

How to use it

Convert a CSS-in-JS style object to plain CSS, flattened or with native nesting, without running your code. Paste a JavaScript style object above and choose flat or nested CSS output.

Example

Input: { ".card": { color: "red" } }
Output: .card {
  color: red;
}

Limits and behavior

  • The input is parsed as data and never executed.
  • Input is limited to 1 MiB of UTF-8 text.