FormatterHQ

BBCode to HTML Converter

Convert forum BBCode into clean HTML. Formatting, links, images, quotes, lists, code blocks, tables and spoilers are translated, and unsafe links are removed.

Input TEXT
Output HTML
Ready.

How to use the BBCode to HTML Converter

  1. Paste your BBCode post or signature into the input editor.
  2. Run the conversion.
  3. Review the generated HTML in the output (and preview it if needed).
  4. Copy the HTML into your website, CMS or migration script.

What is BBCode?

BBCode (Bulletin Board Code) is the lightweight markup used by forums such as phpBB, vBulletin, MyBB and SMF. Instead of HTML tags it uses square brackets: [b]bold[/b], [url=https://example.com]link[/url]. Forums adopted it because users could format posts without being allowed to inject arbitrary HTML. This BBCode to HTML converter translates those posts into standard HTML for websites, CMS imports and archives.

BBCode to HTML example

[b]Welcome to the forum![/b]
Please read the [url=https://example.com/rules]rules[/url].

[quote=Admin]Be kind and stay on topic.[/quote]

[list]
[*]Search before posting
[*][color=red]No spam[/color]
[/list]
<strong>Welcome to the forum!</strong><br>
Please read the <a href="https://example.com/rules" rel="nofollow">rules</a>.<br>
<br>
<blockquote><cite>Admin wrote:</cite><br>
Be kind and stay on topic.</blockquote>
<ul>
<li>Search before posting</li>
<li><span style="color:red">No spam</span></li>
</ul>

Supported tags

BBCodeHTML result
[b] [i] [u] [s]strong, em, u and s elements
[url] [email] [img]links, mailto links and images (with [img=WxH] sizes)
[quote] [quote=Name]blockquote, with "Name wrote:" attribution
[code] [icode] [noparse]pre/code blocks and inline code; contents are not parsed
[list] [list=1] [*]bulleted and numbered lists (also a, A, i, I)
[color] [size] [font] [highlight]styled spans and mark
[center] [left] [right] [align]aligned div elements
[table] [tr] [td] [th]HTML tables
[spoiler] [youtube] [hr] [h1]–[h6]details/summary, embedded video, rules and headings

[size] accepts both the classic 1–7 scale and pixel or percentage values, because different forum packages use different conventions.

Safe output

Links get rel="nofollow", the usual convention for user-generated content. Text is HTML-escaped, so a post containing <script> shows the characters instead of running them. Links using javascript:, data: or other non-web schemes are dropped, and color and font values are filtered to plain CSS. Unknown tags such as [foo] are left as text rather than guessed at. Still, sanitize imported content on the server as well if it came from untrusted users.

Migrating a forum

When moving an old community to a new platform, convert posts in batches and spot-check the ones with nested quotes, tables and code. Unclosed tags are closed automatically at the end of the post. You can preview rendering with the BBCode viewer, convert the other way with HTML to BBCode, or go on to Markdown with HTML to Markdown if your new platform prefers it. Conversion runs in your browser.

Common BBCode problems and how they convert

  • Overlapping tags. Forum posts often contain [b][i]text[/b][/i]. HTML does not allow elements to overlap, so check the output of such posts and fix the source order to [b][i]text[/i][/b] if the formatting ends up wrong.
  • Forum-specific tags. Plugins added tags such as [attachment] or [mention] that only exist on one platform. They stay as visible text, which makes them easy to search for and replace after the import.
  • Smileys. Codes like :) are plain text in BBCode and were turned into images by the forum software, so they come through as text.
  • Relative image paths. [img]/uploads/pic.png[/img] only works if the files move to the same path on the new site; update the paths or copy the upload folder.

Frequently asked questions

Is the generated HTML safe to publish?
The converter escapes text and removes dangerous link schemes such as javascript:. For content from untrusted users, still run your platform’s own HTML sanitizer before publishing.
Which BBCode dialects are supported?
The common tags shared by phpBB, vBulletin, MyBB, SMF and similar forums are supported, including lists, quotes, code, tables, spoilers and YouTube embeds.
What happens to tags the converter does not know?
They are kept as plain text, so nothing is silently lost. You can then replace them manually or with a find-and-replace.
How are line breaks handled?
Line breaks in the BBCode become br (line break) elements in the HTML, matching how forums display posts.

Last updated September 26, 2026

Related tools

HTML to BBCode Converter Convert HTML into forum-friendly BBCode: bold, links, images, lists, quotes, tables, code blocks and inline colours. BBCode Viewer Preview BBCode forum posts before publishing: bold, colours, links, quotes, lists, code and spoilers rendered live. CSV to HTML Table Converter Convert CSV to HTML online for free. Get clean table markup with a live preview. Excel to HTML Table Converter Convert Excel to HTML online for free. Get clean table markup with a live preview. HTML Entities to Text Turn HTML entities (named, decimal and hex) back into plain Unicode text. HTML Table to CSV Converter Convert HTML to CSV online for free. Nested data is flattened into columns. Code Syntax Highlighter Highlight source code as self-contained HTML with inline styles - paste the coloured snippet into blogs, e-mails or docs. HTML Entities List Searchable list of 1,400+ named HTML character entities with decimal and hex codes, code points and CSS escapes. Click to copy. HTML Formatter Beautify or minify HTML online. Fixes indentation of tags, inline CSS and scripts. HTML Link Generator Create an HTML anchor tag with link text, title, target _blank, nofollow or sponsored rel and simple inline styling. HTML Pretty Print Opinionated HTML pretty print with Prettier: closes implied tags, enforces a line width and gives the same output for any input layout. HTML Table Generator Generate HTML table code with any number of rows and columns, header row, caption, border and padding - with live preview.