Skip to content
M2TOOLKIT

Design Token Converter

Turn one set of design tokens into code for every platform.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Design
  • Free
  • No sign-up
  • Runs in your browser
  • Updated

9 tokens · references like {color.brand} are resolved.

color.brand color.brand-dark color.text color.link

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the Design Token Converter

  1. Paste tokens JSON — the W3C $value/$type format or simple nested values.
  2. Choose the output format and an optional prefix.
  3. Copy or download the result.

What does this tool do?

Design tokens keep colours, spacing, type and radii consistent between Figma and code. This converter flattens nested groups into names like color-brand, resolves aliases such as {color.brand}, and maps groups to the right Tailwind theme namespaces.

Everything runs in your browser — nothing you paste is uploaded.

Why use it?

  • W3C token format.
  • Tailwind v3 and v4.
  • Resolves references.

Use cases

  • Keep Figma variables and code in sync.
  • Generate Tailwind themes from a design system.
  • Share tokens across web and app projects.

From tokens to CSS

{ "color": { "brand": { "$value": "#0ea5a4", "$type": "color" }, "accent": { "$value": "{color.brand}" } } }

becomes --color-brand: #0ea5a4 and --color-accent set to the same brand colour, because the alias is resolved.

Common mistakes

  • Naming tokens after their value (blue-500) instead of their role (brand).
  • Aliases that point to tokens that don't exist.
  • Mixing units, such as px and rem, in one spacing scale.

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Frequently asked questions

What is the W3C token format?

A draft standard where each token has $value and optionally $type.

Tailwind v3 or v4?

v3 uses a JavaScript config; v4 uses CSS @theme variables. Choose the one your project uses.

Can I add a prefix?

Yes, to avoid clashes, such as --ds-color-brand.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the design token converter.