Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.0   Updated Wednesday, January 17th, 2007 at 2:14pm

BBCode to HTML Converter

This web-based utility converts BBCode to HTML. The most common use for a utility like this is to easily convert forum posts using BBCode to standard HTML for use in traditional web pages. This utility currently supports all of the BBCode tags used by phpBB and a list of these tags can be found below. Unlike some convertors, this will generate proper paragraph tags (instead of just using a lot of line breaks), and takes advantage of CSS declarations for font sizes, colors, and more (as opposed to their depreciated HTML tag counterparts). There are also several options available.

Try it out

  If you have found this page useful, please consider donating. Thanks!

Changelog

  • 07-01-09 – Added support for the [center] [/center] tags
  • 01-17-07 – Added several new tags. The converter is also now on its own domain – bbcode-to-html.com
  • 06-16-06 – First version.

Supported BBCode tags

You can now find a complete list of the supported tags on the site linked above.

Notes

The HTML generated by this utility should be 100% valid, with one exception – the use of lists.

This converter generates lists the same way that phpBB does – without using closing li tags. It will actually validate as HTML, but not as XHTML. Even though it is technically legal with standard HTML, it is still kind of lazy to do. Actually I have not ever seen a BBCode parser in any forum script that does it the ‘right’ way.

This converter also supports multi-level lists, but you cannot have one type of list inside another type of list. Ordered in ordered is ok, but not ordered in unordered, etc. Coincidentally, this problem is also found within phpBB ;)

  1. Great utility. Works like magic!

  2. The link works. The utility works great!

  3. Can you provide me with an alternate download link? I get an error message when clicking the link above. Thanks!

  4. Just downloaded the tool and it works flawlessly. You guys gotta try it out!

  5. Is it available for download?

  6. Thank you very much for this helpful tool.

  7. Is it available for download?

  8. Support for the [center] [/center] tags has been added.

  9. 12
    denny

    as for the list issue… if you automaticly add a /li before any li after the first one, and then automaticly add a /li before the /list tag it would still come out xhtml…

  10. thank man that is what i search for

  11. 10
    Dave

    Would you ever consider releasing the PHP script for public consumption? I’ve been looking for a good BBCode parser for a while!

  12. gr8 tool!

  13. That’s exactly what I was looking for… Needed to convert a lot of links from a forum post.
    Thank you!

  14. Samghost: Because BBCode tags do not work in the comments section of this site – glad you like the tool though :)

  15. 6
    Samghost

    Goddammit why are the tags not working?!

  16. 5
    Samghost

    [color=red]Thank you so much for the time you took to create this, it’s so helpful[/color] :smile:

  17. 4
    Samghost

    [color=red][u][b][i]Thank you so much for the time you took to create this, it’s so helpful[/u][/b][/i][/color] :smile: :smile:

  18. 3
    Samghost

    [color=red][u][b][i]Thank you so much for the time you took to create this, it’s so helpful[/u][/b][/i]:smile::smile:

  19. 2
    WildOne

    Great tool! Saves me for a lot of work :D

  20. 1
    BYTES

    First!!!!!!!!11one :P

    Thanks for coding this wonderful tool.

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.