Report Tool or Give Us Suggestions

HTML BDO Generator

Wrap text in an HTML bdo element with LTR or RTL direction. Copy-ready markup in the browser.

L ading . . .

What Is HTML BDO Generator?

The HTML BDO Generator builds a <bdo> (bidirectional override) element that forces inner text to render in a chosen direction: left-to-right (dir="ltr") or right-to-left (dir="rtl"), independent of surrounding document direction. This helps mixed Hebrew, Arabic, and Latin snippets display predictably.

When to use <bdo>

Use it when Unicode bidirectional algorithm alone produces the wrong visual order—log files, code samples, or names that mix scripts. Pair with <bdi> or CSS unicode-bidi where appropriate; bdo is the blunt “force this direction” tool.

How to use

  1. Choose Direction (ltr or rtl).
  2. Optionally add a CSS class for styling.
  3. Enter inner text; the tool escapes HTML special characters in the snippet.
  4. Copy the generated HTML snippet into your template or CMS.

Frequently Asked Questions

How is my text escaped?

Characters like &, <, >, and quotes are escaped so the snippet stays valid and safe to paste.

Difference between bdo and bdi?

bdo overrides direction for its contents. bdi isolates a run for bidirectional layout without forcing a single direction.

Can I preview rendering here?

This page focuses on copy-ready markup. Paste the snippet into an HTML preview or your site to see final rendering with your fonts and CSS.

Is the snippet valid HTML5?

Yes. The generator outputs a standard bdo tag with a dir attribute and optional class.