HTML to BBCode

Your data never leaves your browser

Convert HTML markup to BBCode for forum posts and bulletin boards.

Brie — Bug Reporting Tool

Fixing broken HTML in production?

Brie captures the DOM, console errors, and a full session replay so your team can see exactly what went wrong.

About HTML to BBCode

Transform HTML into BBCode format used by forums like phpBB, vBulletin, and XenForo. Supports bold, italic, underline, links, images, headings (via [size] tags), paragraphs, and line breaks. Parse with DOMParser for accurate node traversal.

How to use

  1. Paste your HTML into the input panel.
  2. The BBCode equivalent appears instantly in the output panel.
  3. Copy and paste the BBCode into your forum post or bulletin board.

More HTML Tools

Frequently Asked Questions

FAQs about HTML to BBCode

Which HTML elements are converted?

b/strong → [b], i/em → [i], u → [u], a → [url=], img → [img], h1-h6 → [size], br and p → newlines.

Does every forum support the same BBCode?

BBCode is not fully standardised. This tool outputs common tags. Check your forum's BBCode reference for supported tags.

What happens to unsupported elements?

Unsupported elements have their tags stripped and text content is preserved inline.

Are nested tags handled?

Yes. The DOM walker handles nested elements, so bold inside a link or italic inside a heading will produce nested BBCode.

Is my data safe?

Yes. All conversion happens in your browser. No data is sent to any server.