UBB ⇄ HTML Converter

Convert UBB forum tags to HTML and HTML back to UBB for bulletin boards and web content.

Back to all tools on ToolForge

More in Text Tools

UBB



HTML

About UBB ⇄ HTML Converter

This UBB and HTML converter helps you switch between UBB forum tags and HTML for bulletin boards, comments and web content. UBB tags like [b], [i], [url] are converted to equivalent HTML elements.

It is useful when migrating forum content, editing bulletin board posts or preparing text for systems that use UBB or HTML formatting.

UBB Tag Reference

UBBHTMLDescription
[b]text[/b]<b>text</b>Bold text
[i]text[/i]<i>text</i>Italic text
[u]text[/u]<u>text</u>Underlined text
[url=X]Y[/url]<a href="X">Y</a>Hyperlink
[img]src[/img]<img src="src">Image embed
[code]...[/code]<pre><code>...</code></pre>Code block
[quote]...[/quote]<blockquote>...</blockquote>Quote block

Frequently Asked Questions

What UBB tags are supported?
Supported tags include [b], [i], [u], [s], [url], [img], [code], and [quote]. Both inline and parameterized formats work.
Can I convert HTML back to UBB?
Yes. The converter handles common HTML elements like , , , , ,
, and 
.
Does it preserve nested formatting?
Basic nesting is preserved, but deeply nested or mixed formatting may have limitations due to regex-based parsing.
What about custom UBB tags?
Custom tags like [youtube], [attachment], or forum-specific codes are not converted and pass through unchanged.
Are line breaks preserved?
Newlines are converted to
tags in UBB-to-HTML mode. HTML line breaks convert back to newlines in reverse mode.
Why use UBB instead of HTML?
UBB is safer for user input as it prevents XSS attacks. Many legacy forums and bulletin boards still use UBB syntax.