We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Instantly convert between HTML and UBB code. Perfect for forums, blogs, and cross-platform publishing to ensure formatting compatibility.
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
HTML uses tags such as <strong> and <a href="…">; BBCode (also called UBB on some forums) uses square-bracket tags such as [b] and [url=…]. This converter changes a narrow set of text markup in either direction. It is useful when a short post needs to move between a web editor and a forum that accepts BBCode.
For HTML to BBCode, the tool maps <b> and <strong> to [b]; <i> and <em> to [i]; <u> to [u]; anchors with an href to [url=address]text[/url]; and images with a src to [img]address[/img]. A <br> becomes a line break. In the reverse direction, the recognized tags are [b], [i], [u], [url=address], and [img]; line breaks become <br />.
For example, <a href="https://example.com">Read more</a> becomes [url=https://example.com]Read more[/url]. The HTML standard defines what href and src mean in HTML; the mapping above describes this converter’s smaller set of transformations.
href attribute; checked September 28, 2026.img and src; checked September 28, 2026.Guide
Follow the workflow and verify inputs and outputs with practical examples.
Choose the direction that matches the text you are pasting. Each mode keeps its own input, so switching back lets you return to the earlier text.
Enter markup in the input pane. You can use the example control to see a sample with emphasis, a link, and an image reference. The output updates as the text changes.
Review the result, especially the link and image addresses, then use the output copy control. Paste it into the destination editor and preview it there before publishing.
For instance, [b]Meeting notes[/b] becomes <b>Meeting notes</b> in the reverse direction.
Use cases
See how the tool fits into real work and everyday tasks.
If a web editor gives you a small HTML snippet with bold text, a link, or an image, switch to HTML to UBB and copy the bracket markup into the forum composer.
When bringing a BBCode paragraph into an HTML editor, choose UBB to HTML and inspect the resulting tags and addresses before adding it to a page.
Q&A
Find concise answers to common questions and confusing cases.
No. It recognizes only the small tag set described above. Other HTML tags are stripped while their text may remain; CSS, tables, lists, scripts, and arbitrary BBCode tags are not faithfully converted.
The image mapping carries the src address into [img]; it does not carry other attributes such as alt.
Not necessarily. Forum software can support different subsets or interpretations of BBCode. Use the target forum’s preview and adjust the markup to its rules.
Notes
Review scope, result limitations, and important precautions before use.
This is a text replacement helper rather than a complete HTML or BBCode parser. It does not preserve complex nesting, styling, table layout, lists, scripts, or unsupported attributes. Malformed or unusually nested markup may not convert as expected, and converting back and forth can discard structure. Paste only the snippet you need, inspect generated markup, and do not publish unreviewed HTML from an untrusted source.
Related
Discover related tools, collections, and available API capabilities.