Color · Made a little simpler

Writing Mode Tester

Try horizontal-tb, vertical-rl and vertical-lr with LTR or RTL text and vertical orientation controls. Swap logical sizes, compare multiple scripts and export the CSS.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Writing-mode preview

Workshop notes Read the posted rail map before your trip.

Physical size 180 × 104 px

Writing axes

Inline size follows a line of text. Block size follows the stack of lines.

Preview text

Generated stylesheet

#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Writing Mode Tester: how to use it

  1. Choose a writing mode, a base direction and, for vertical modes, a text orientation.
  2. Load a multilingual sample or type your own text. Change the font, inline and block sizes or compare all three modes.
  3. Copy or download the CSS for the selected mode and apply it to the target text container.

Limits and notes

Preview text is limited to 1,000 characters. Logical sizes and the font apply to the preview box. The stylesheet contains settings only and the supplied text stays on your device.

How your privacy works →

Writing Mode Tester: common questions

Which size becomes the height in a vertical writing mode?

Inline size follows the lines of text, so it becomes the physical height in vertical modes. Block size becomes the physical width.

Why can text orientation change the effect of RTL?

With vertical upright text, the CSS specification uses left-to-right direction during layout even when the direction declaration is RTL. Compare with Mixed to test direction separately.

Does changing writing mode translate my content?

The browser lays out the supplied characters using the selected writing properties. Choose fonts and text suited to the intended language.

Guides