BBCode to HTML Converter: Turn Forum Markup Into Clean HTML
Learn how to convert BBCode forum markup from phpBB, vBulletin, or Discourse into clean, modern HTML using the free BBCode to HTML Converter with live preview.
Table of Contents
If you have ever administered a phpBB forum, moderated a vBulletin community, or exported posts from a Discourse archive, you have met BBCode. Square-bracket tags like [b], [url=...], and [quote] kept forums safe for two decades β but they are useless outside the forum software that parses them. The moment you want that content in a modern website, a CMS, or an email template, you need real HTML.
That is exactly what the BBCode to HTML Converter does. Paste any BBCode text and instantly get clean, standards-compliant HTML with a live preview β no account, no installation, no server round-trip. Everything runs locally in your browser, which means your content never leaves your machine.
In this guide, we will walk through how the converter works, which tags it supports, and the practical scenarios where it saves you hours of tedious manual rewriting.
Why Use BBCode to HTML Converter?
- Instant migration of legacy content. Forum archives going back to the early 2000s are full of BBCode. Manually rewriting [url] tags into <a> elements across thousands of posts is not viable β the converter does it in one paste.
- Live preview while you work. You see the rendered output side-by-side with the generated HTML, so you can confirm formatting, quotes, and lists look right before copying anything.
- Safe, sanitized output. Input is HTML-escaped during conversion, so any raw script tag or HTML smuggled into the source text is neutralized. Output links are restricted to safe URL schemes and get rel="noopener noreferrer" and target="_blank" automatically.
- Broad tag coverage. From basics like [b] and [i] to [quote=name], nested lists, [code] blocks, colored text, font sizes, and image dimensions β the mapping covers the tags real forums actually used.
- Zero friction. No sign-up, no upload, no API keys. It is a free browser tool that works on desktop and mobile.
- Copy and download built in. One click copies the HTML to your clipboard; another downloads it as a file ready to drop into your project.
Key Features
The converter maps the full range of classic BBCode tags to semantic HTML:
| BBCode | HTML Output | Notes |
|---|---|---|
| [b]...[/b] | <strong>...</strong> | Bold |
| [i]...[/i] | <em>...</em> | Italic |
| [u]...[/u] | <u>...</u> | Underline |
| [s]...[/s] | <del>...</del> | Strikethrough |
| [mark] / [sub] / [sup] | <mark>, <sub>, <sup> | Highlight, sub/superscript |
| [quote=name]...[/quote] | styled <blockquote> | Author attribution preserved |
| [list] / [list=1] / [list=a] | <ul> / <ol> | Numeric and alpha ordered lists |
| [code]...[/code] | protected code block | Inner tags are not parsed |
| [icode]...[/icode] | <code>...</code> | Inline code |
| [url]x[/url] / [url=x]label[/url] | <a href="..."> | Scheme-validated, noopener noreferrer |
| [email] / [email=x] | <a href="mailto:..."> | Clickable email links |
| [img] / [img=WxH] | <img> | Optional width/height attributes |
| [size=4] / [size=14px] | <span style="font-size:..."> | Both numeric 1β7 and CSS units |
| [color=#f00] / [highlight=#ff0] | <span style="..."> | Color and background |
| [font=Georgia] | <span style="font-family:..."> | Font family |
| [align=center] | <div style="text-align:..."> | left/center/right/justify |
| [h1]β[h6] | <h1>β<h6> | Headings |
| [hr] | <hr /> | Horizontal rule |
A few details worth knowing:
- Code blocks are protected. Content inside [code]...[/code] is extracted before tag parsing and restored afterward, so a BBCode example inside a code sample is displayed verbatim instead of being converted. This mirrors how real forum parsers behave.
- URL safety is enforced. Only http://, https://, mailto:, and ftp: schemes survive; anything else (such as javascript:) is neutralized. This closes the most common XSS vector in user-submitted markup.
- Everything happens client-side. The conversion logic runs entirely in your browser β no content is uploaded, logged, or stored.
How to Use
- Open the BBCode to HTML Converter in your browser.
- Paste your BBCode text into the input panel β a forum post, an exported thread, or a whole batch of messages.
- Watch the live preview render immediately, showing exactly how the converted HTML will look.
- Review the generated HTML in the output panel; adjust your source text if anything needs fixing.
- Click Copy to grab the HTML for your clipboard, or Download to save it as a file.
Understanding BBCode
BBCode β Bulletin Board Code β emerged in the late 1990s as a lightweight, safe alternative to raw HTML in user-generated content. Forum administrators had a problem: letting users write HTML meant letting them write script tags, and that meant session theft and defacement. Stripping HTML entirely meant users could not format anything.
BBCode solved both problems at once. Users write square-bracket tags like [b]bold[/b], and the forum software converts only the whitelisted tags into HTML, escaping or discarding everything else. Because the parser controls the translation, it can guarantee that no dangerous markup ever reaches the page. phpBB, vBulletin, IP.Board, SMF, and countless other platforms adopted it, and even modern engines like Discourse still accept BBCode input for compatibility.
The conversion process in this tool follows the same disciplined pipeline that production forum parsers use:
- Protect code blocks β extract [code] content so it is never touched.
- Escape HTML β every <, >, and & in the source becomes an entity, defusing smuggled markup.
- Parse tags in order β containers first ([quote], [list]), then inline formatting, then links, images, and headings. Order matters because quotes can contain lists and lists can contain formatting.
- Validate URLs β each [url] is checked against the allowed scheme whitelist before an <a> is emitted.
- Restore code blocks β the protected content is re-inserted, escaped, at the end.
Understanding this order explains the output you see: a script tag pasted into the BBCode input arrives in the output as visible escaped text, never as live HTML. That is the behavior you want when migrating untrusted forum archives.
Practical Use Cases
Migrating a legacy forum archive
You are moving ten years of phpBB posts into a modern platform that expects HTML. Export the posts (phpBB's database backup or the MCP export gives you raw BBCode), batch them through the converter, and feed clean HTML into your import script. Quotes, lists, links, and code samples all survive with their structure intact.
Embedding forum content in a website or CMS
Community highlights β an authoritative answer, a great build log, a staff announcement β often deserve a permanent home on the main site. Convert the BBCode thread to HTML, paste it into WordPress, Ghost, or a static site, and the formatting carries over without hand-rebuilding every link and list.
Building HTML email templates from forum drafts
Support teams frequently draft announcements in the forum first. Convert the BBCode draft to HTML, then adapt the <strong>, <a>, and list markup into your email template. Because the output uses standard semantic tags, it maps cleanly onto email-safe HTML.
Testing forum import pipelines
If you are writing an importer that maps BBCode to HTML, you need known-good reference outputs. The converter doubles as an oracle: paste tricky edge cases β nested quotes, a [code] block containing [b] examples, a [url] with a javascript: scheme β and compare your importer's output against the tool's safe handling of the same input.
Best Practices
- Convert in small batches and spot-check. A 500-post migration is easier to verify in chunks of 20β50; catching a formatting quirk early saves rework.
- Test nested structures first. Quotes containing lists containing links are where naive converters break. Verify a representative sample before trusting bulk output.
- Keep the source BBCode. Store the original export alongside the converted HTML so you can re-convert later with different rules if requirements change.
- Never trust raw forum HTML. Even after conversion, if the destination page renders user content, keep the escaping the converter applied β it is your XSS protection.
- Review image tags. [img] URLs may point to dead hosts or hotlink-protected servers; check that images resolve before publishing migrated content.
- Use live preview for layout decisions. The preview shows how [align] and [size] render, which helps you decide whether to keep inline styles or replace them with CSS classes.
Start Converting Now
Thousands of communities have decades of knowledge locked in BBCode. Unlocking it should not require a regex archaeology project. Paste your forum markup into the BBCode to HTML Converter, check the live preview, and copy clean HTML out in seconds β safely, privately, and for free.
Related Tools You Might Like:
- Markdown to HTML Converter β render Markdown documents into clean HTML for publishing.
- Jira to Markdown Converter β translate Jira markup into Markdown for docs and READMEs.
- HTML to Markdown Converter β go the other direction and turn HTML pages into portable Markdown.
Happy converting!