What is BBCode? How to Easily Convert BBCode to HTML
Created on 1 October, 2025 • Developer Tools • 250 views • 3 minutes read
Dealing with old forum code? Learn what BBCode is, how tags like `[b]` and `[url]` work, and how to instantly convert any BBCode to clean HTML with a free online converter.
Before the age of social media giants, the internet was built on communities—thriving forums and message boards where users discussed everything from technology to hobbies. Even today in 2025, the legacy of these platforms lives on in countless databases and archives.
If you've ever managed one of these communities or tried to migrate its content, you've likely encountered a special type of markup: BBCode.
But what is this format, and how do you convert it to the modern HTML used by today's websites? This guide will break it down for you.
What is BBCode?
BBCode, which stands for Bulletin Board Code, is a lightweight markup language created for use in online forums. Its primary purpose was to allow users to format their posts (make text bold, add images, create links) without giving them the ability to write actual HTML.
This was a crucial security measure. Allowing users to write raw HTML would have opened the door to malicious scripts (<script>) and page-breaking code. BBCode provided a safe, limited, and simple set of tags that the forum software could easily translate into secure HTML. Instead of HTML's angle brackets (<>), BBCode uses square brackets ([]).
Common BBCode Tags and Their HTML Equivalents
While there were many variations, most BBCode implementations used a standard set of tags. Here’s how the most common ones translate to HTML:
| BBCode Syntax | HTML Equivalent | Purpose |
[b]Bold Text[/b] | <strong>Bold Text</strong> | To make text bold. |
[i]Italic Text[/i] | <em>Italic Text</em> | To make text italic. |
[u]Underlined[/u] | <span style="text-decoration:underline;">Underlined</span> | To underline text. |
[url=https://example.com]Click Here[/url] | <a href="https://example.com">Click Here</a> | To create a link with custom text. |
[img]https://image.com/pic.jpg[/img] | <img src="https://image.com/pic.jpg" alt=""> | To embed an image. |
[quote]Someone's quote[/quote] | <blockquote>Someone's quote</blockquote> | To create a quote block. |
[code]myFunction();[/code] | <pre><code>myFunction();</code></pre> | To display formatted code. |
Why You Need to Convert BBCode to HTML Today
While new platforms rarely use BBCode, you'll often need to convert it when:
- Migrating an old forum to a modern system like WordPress or Discourse.
- Archiving old content and displaying it on a new website.
- Cleaning a database that contains user-generated content from a legacy application.
The Easiest Solution: An Online Converter
Manually converting thousands of old forum posts with find-and-replace is a recipe for disaster. Writing a custom script to handle all the nuances is also a complex task. By far, the most efficient and error-free method is to use a dedicated online tool.
For a fast and accurate conversion, a dedicated online tool is the best way to go. We recommend the BBCode to HTML Converter from Shortus.xyz.
Try the free tool here: https://shortus.xyz/tools/bbcode-to-html
How to Use the Converter:
- Copy Your BBCode: Go to your source file or database and copy the block of text formatted with BBCode.
- Paste and Convert: Visit the converter tool, paste your BBCode into the input box, and the tool will instantly provide the clean, standard HTML output in the results area.
You can then copy this HTML and use it on any modern website or content management system. It's the simplest way to preserve the formatting of classic web content and bring it into the modern era, whether you're archiving a local Bangkok community forum or a global gaming board.