ScroogeXHTML is a library which converts
RTF to HTML5 and XHTML, as a standalone document, or as a fragment which can be embedded in other documents.
supports hyperlinks, tables, picture data extractioncomplimentary conversion code for embedded BMP/JPG/PNG pictures to Data URIsminimizes document size using CSS definitionssupports post processing of the intermediate DOM treesmall (less than 140 KB) and fast (up to many MB/second)logging support (SLF4J)
https://www.scroogexhtml.com
Online demo:
https://www.scroogexhtml.com/sxd
The online demo converts a RTF document to HTML5, and allows to set many conversion settings.