HTML to BBCode Converter

Transform HTML markup to BBCode for forums

Input HTML
BBCode Output
Click "Convert to BBCode" to see result

What is HTML to BBCode Conversion?

BBCode (Bulletin Board Code) is a lightweight markup language used in forums, bulletin boards, and online communities like phpBB, vBulletin, and many others. HTML is the standard markup language for web pages. Converting HTML to BBCode allows you to take content from web pages and post it on traditional forums that only support BBCode formatting.

This tool transforms common HTML tags into their BBCode equivalents. It handles headings, bold, italic, lists, links, images, code blocks, and more. The output is ready to paste into any BBCode‑compatible forum or CMS.

All processing is done locally in your browser – your content never leaves your device.

How to Use

Step 1: Paste your HTML into the input area. You can use the sample HTML as a guide.
Step 2: Click "Convert to BBCode". The tool transforms the HTML tags into BBCode.
Step 3: Copy the BBCode output using the "Copy BBCode" button.
Step 4: Paste the BBCode into your forum post or bulletin board editor.

The converter supports headings (H1-H6), bold, italic, underline, strikethrough, ordered/unordered lists, links, images, inline code, and code blocks. It also handles nested structures properly.

Examples

HTML: <h1>Heading 1</h1>
BBCode: [h1]Heading 1[/h1]

HTML: <strong>bold text</strong>
BBCode: [b]bold text[/b]

HTML: <a href="https://example.com">Link</a>
BBCode: [url=https://example.com]Link[/url]

HTML: <ul><li>Item</li></ul>
BBCode: [list][*]Item[/list]

Who Uses HTML to BBCode Converters?

  • Forum Moderators – formatting web content for forum posts.
  • Content Creators – repurposing website content for forums.
  • Community Managers – maintaining forum content from web sources.
  • Developers – converting documentation for forum discussions.
  • Writers – posting content on multiple platforms.

Pro Tips

  • Use headings (H1-H6) for structured content; they convert to [h1] through [h6] tags.
  • Code blocks with <pre><code> convert to [code] tags.
  • Images use the [img] tag with the URL as content.
  • Links use the [url] tag with the URL as an attribute.
  • For forums that don't support certain tags, you can edit the output manually.
  • Inline styles are not converted; only semantic HTML tags are supported.

Frequently Asked Questions

What HTML tags are supported?
The converter supports: h1-h6, strong/b, em/i, u, del/s, ul, ol, li, a, img, pre, code, blockquote, and table tags. Other tags are stripped or left as plain text.
Does it support nested lists?
Yes, nested HTML lists are preserved with proper BBCode nesting.
What about inline styles like color or size?
Inline styles are not converted to BBCode; only semantic tags are supported. For color/size, you'd need to manually add BBCode.
Can I convert BBCode back to HTML?
Yes, use the BBCode to HTML converter (see related tools).
Is my data sent to a server?
No, all conversion happens locally in your browser.
What about HTML tables?
Tables are converted to BBCode [table], [tr], [td] tags if supported by your forum.
Does it handle malformed HTML?
The converter works best with well‑formed HTML. For messy HTML, consider cleaning it first.