About the BBCode to HTML
BBCode to HTML converts the square-bracket formatting used on forums into standard HTML tags. Paste a post written in BBCode and copy the HTML source for a website, blog, or email.
How it works
First, &, <, > and quotes are escaped so any HTML in the input is shown as text. [code] blocks are set aside so their contents aren't converted. Then each BBCode pair is replaced with its HTML equivalent, repeatedly until nothing changes, so nested tags like [b] inside [b] and tags spanning several lines all convert.
Links and images only keep http, https, mailto and relative URLs; anything else, such as javascript:, becomes #. [color] accepts only color names and hex codes, and [size] accepts 1 to 7 (the old forum scale) or a number in px, pt or %. Line breaks become <br />, except right after block elements like lists and quotes.
How to use
- 1
Paste your BBCode into the input box.
- 2
Switch between HTML code and Preview to check the result.
- 3
Copy the HTML or download it as post.html.
Worked examples
Bold and link
A short forum line.
Color and escaping
Text containing a < sign.
List
A bulleted list across lines.
The line break right after [list] becomes a <br /> inside the list; remove it if you want clean markup.
Frequently asked questions
What is BBCode used for?+
BBCode is a lightweight markup language used on forum software to format posts with tags like [b] for bold and [url] for links.
Which BBCode tags are supported?+
[b], [i], [u], [s], [sub], [sup], [h1] to [h3], [url], [url=...], [email], [img], [color=...], [size=...], [center], [left], [right], [quote], [quote=Name], [code], and [list], [list=1] and [list=a] with [*] items.
Do multi-line [code] and [quote] blocks work?+
Multi-line [code] and [quote] blocks are supported. If one wasn't converted, check that it has a matching closing tag.
What happens to HTML already in my text?+
It is escaped, so <b> becomes <b> and shows as text instead of being treated as markup.
Does it show a rendered preview?+
Yes. Click Preview to see the HTML rendered in a sandboxed frame where no scripts can run.