HTML BDO Generator
Generate a <bdo> bidirectional override element — control whether text renders left-to-right or right-to-left — and copy the HTML with live preview.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is HTML BDO Generator?
The HTML `<bdo>` (Bidirectional Override) element overrides the browser's Unicode bidirectional algorithm and forces text to render in the specified direction. The required `dir` attribute accepts `rtl` (right-to-left) or `ltr` (left-to-right).
This is different from the CSS `direction` property or the `dir` attribute on other elements: `<bdo>` makes the browser treat each character individually and reverse their visual order regardless of the script's natural direction. It is most commonly used to display reversed or mirrored text for decorative, testing, or localisation purposes.
How to Use HTML BDO Generator
Enter the text content to display
Choose rtl to reverse direction or ltr to force left-to-right
Optionally add id, class, or title attributes
Copy the generated HTML
Common Use Cases
- Developers testing right-to-left layout rendering in mixed-script pages.
- Content authors demonstrating bidirectional text for localisation documentation.
- Designers creating reversed or mirrored text for decorative purposes.
Example Input and Output
A bdo element that reverses "Hello World" to display right-to-left.
Text: Hello World
Direction: rtl<bdo dir="rtl">Hello World</bdo>Privacy
All HTML generation runs in your browser. No data is sent to any server.
Frequently Asked Questions
What is the difference between <bdo> and the dir attribute?
The dir attribute on elements like <p> or <div> sets the base direction and lets the browser apply the Unicode bidirectional algorithm. <bdo> forces a hard override, reversing character order visually regardless of the script type.
Does <bdo dir="rtl"> actually reverse the characters?
Yes. With dir="rtl" the browser displays characters in reverse visual order. "Hello" appears as "olleH" on screen — the underlying HTML characters are unchanged.
Related Tools
HTML Emphasize Text Generator
Generate HTML <em> (emphasize) elements with optional id, class, title, and lang attributes. Adds semantic stress emphasis to inline text. Live preview included.
HTML Mark Text Generator
Generate HTML <mark> elements to highlight text for reference or search result emphasis. Configure id, class, and title attributes. Live preview included.
HTML Citation Generator
Generate HTML <cite> elements to mark titles of creative works — books, films, articles, and more. Optionally wrap in a link. Live preview included.
HTML Quote Generator
Generate HTML <q> inline quotation elements with optional cite URL, id, class, and lang attributes. Browsers add quotation marks automatically. Live preview included.
HTML Blockquote Generator
Generate HTML blockquote elements with quote text, citation URL, attribution, and optional figure/figcaption semantic wrapper.
HTML Code Tag Generator
Generate HTML <code> inline code elements for embedding short code snippets within prose. Configure id, class, title, and lang attributes. Live preview.

