How to Use bbcode-to-html
- Paste your BBCode-formatted text into the input area.
- The converter translates tags like
[b], [url], and [img] to their HTML equivalents.
- Toggle options for
[code] block preservation and newline handling.
- Copy or download the resulting HTML for use in your site or CMS.
BBCode (Bulletin Board Code) is the lightweight markup language used by phpBB, vBulletin, XenForo, and other forum software. This converter translates BBCode to clean HTML — useful when migrating forum content to a website, CMS, or blog platform that expects HTML.
BBCode Tags Supported
The converter handles the full standard BBCode tag set: [b] → <strong>, [i] → <em>, [u] → <u>, [url] → <a href>, [img] → <img>, [color] → inline style, [size] → em-based font-size, [quote] → <blockquote>, [list]/[*] → <ul>/<li>, and [code] → <pre><code>. Nested tags and mixed content are handled correctly.
- Covers all standard BBCode tags: bold, italic, underline, strike, links, images, quotes, lists
[code] blocks output as <pre><code> with content preserved
- Newlines converted to
<br> or preserved as block-level breaks
- Handles nested and malformed tags gracefully without crashing
Frequently Asked Questions
Why does forum software use BBCode instead of HTML?
BBCode prevents users from injecting arbitrary HTML and JavaScript. The server parses safe BBCode tags and converts only those — unknown or unsafe tags are stripped, making it an XSS-safe way to let users format posts.
Will it handle custom BBCode tags my forum uses?
Custom tags not in the standard set are left as-is or stripped. If your forum uses custom tags (e.g. [spoiler] or [video]), you'll need to add mappings or handle them manually after conversion.
How are nested quotes handled?
Nested [quote] tags produce nested <blockquote> elements. The attribution parameter [quote=Username] is converted to a <cite> element inside the blockquote.
Can I convert HTML back to BBCode?
Use the BBCode to Text tool to strip all markup, or manually reverse the conversion. A dedicated HTML-to-BBCode converter is not currently in this tool set.
See also BBCode to Text for stripping all markup, and the HTML Formatter for cleaning up the output.