HTML to BBCode

Convert common HTML formatting tags to plain BBCode for forums and legacy publishing workflows.

← Developer Tools

Convert common HTML formatting tags to plain BBCode for forums and legacy publishing workflows.

DeveloperHTMLBBCode

Result: Enter HTML to convert common formatting.

How to convert HTML for a forum post

  1. Paste an HTML fragment, such as the paragraphs and lists from your own draft. The limit is 100,000 characters.
  2. Click Convert to BBCode and review the plain-text result.
  3. Copy it into your forum’s BBCode editor and use that forum’s preview before posting.

For example, <p>Hello <strong>world</strong>.</p> becomes Hello [b]world[/b]. HTML entities are decoded by the browser parser. This tool converts markup; it does not publish a forum post or fetch a web page from a URL.

What is converted?

HTMLBBCode output
strong/b, em/i, u, s/del[b], [i], [u], [s]
blockquote[quote]
pre or codeOne [code] block, retaining its text and whitespace
ul, ol, li[list], [list=1], [*]
Absolute web links and images[url=…] and [img]…[/img]
Headings, paragraphs, line breaksBold heading text and line breaks

Images use a plain [img] tag; alt text is not inserted into a non-standard tag attribute. Tables become text rows with tab-separated cells rather than a styled table. CSS classes, layout, colors, dimensions, ordered-list starting numbers and other advanced formatting are not reproduced.

Links, code and limitations

Links must use absolute HTTP, HTTPS or mailto addresses. Images require an absolute HTTP or HTTPS address. Relative, empty, credential-bearing and unsupported URLs are omitted while link text is retained. Replace a path such as /guide/ with its complete public URL before conversion. URL brackets are percent-encoded to prevent them from ending a BBCode tag parameter.

A nested <pre><code> pair becomes one code block. Text inside it is preserved rather than converted again. Literal BBCode already present in the source text, including a closing code tag, is preserved too; it can be interpreted by your destination forum. Review or escape it using that platform’s own rules.

Safety and compatibility

The converter parses the fragment in a detached HTML template and returns text in a textarea. It does not insert the supplied markup into the visible page. Scripts, styles, embedded content, templates and form controls are skipped. Conversion is not a general-purpose HTML sanitizer, and the output still needs the target forum’s normal validation.

BBCode support differs between forums. Test lists, images, strike-through and code blocks in the destination preview. For the reverse direction, use BBCode to HTML; it handles a different conversion task and cannot guarantee a lossless round trip.

Related tools