Image by


ScroogeXHTML for the Java platform is a library which can convert a subset of the Rich Text Format (RTF) standard to HTML5 and XHTML, as a standalone document, or as a fragment which can be used in other documents


It supports RTF features such as hyperlinks, field results, simple tables, picture data extraction, and embeds PNG and JPG pictures as data URI


It minimizes documents using cascading style sheets (CSS), and allows post processing of the intermediate DOM document


It is easy to use, and requires no external runtime libraries except the SLF4J logging facade


The online demo converts a RTF document and displays the result HTML5

Try the demo

Text and paragraph formatting


Simple RTF tables

Text properties
Bold/italic/underlined ✓/✓/✓
Foreground/background/highlight color ✓/✓/✓
Subscript/superscript ✓/✓
Strikethrough/hidden ✓/✓
LTR/RTL text ✓/✓
Unicode/DBCS text ✓/✓
Language attribute
Paragraph properties
Left/right/centered/justified alignment ✓/✓/✓/✓
Left/right/first line indent ✓/✓/✓
Background color
Border box
Space before/after ✓/✓
Numbered/unnumbered lists ✓/✓ ①
Tabulators replaced by a sequence of non breaking spaces
Simple tables
Total width
Left margin
Column width
Horizontal cell merging
Cell background color
Row height
Simple border detection
Other content
Hyperlink fields
Bookmark fields
Document types
XHTML 1.0 Transactional
CSS based document minimizer
Font substitution
Logging framework
SLF4J support
Java platform
Minimum version Java SE 7
Advanced features
Picture data extraction ✓ ②
Data URI image embedding ✓ ③
Post processing (XPath based)
Android platform see Base64Utils API docs
List templates (RTF listtable section)
generates <ol>/<ul>/<li> elements but result quality varies between RTF writer applications
JUnit tests
Installer and uninstaller

① uses direct text formatting, does not generate <ol>/<ul>/<li> HTML elements

② conversion of image data to a web-safe format is not included

③ the included MemoryPictureAdapterBase64 supports embedding of PNG and JPG pictures

  Indie edition Jar edition Source edition
Lifetime license
Updates included for one year
Free redistribution in single-user applications
Server deployment licenses included 4 4 4
Library source code included - -
Free basic support included 90 days One year One year
Instant electronic delivery
Single Developer / Server Deployment License explained Buy now Companies or incorporated entities with more than five employees must purchase Jar or Source edition licenses. Buy now Buy now

Released 10 August 2018



Read the "Getting Started" user guide



Browse the online API documentation


Release notes

Browse release notes (new features, enhancements, and bug fixes)



Frequently asked questions: use cases, licensing, and technical



Contact Habarisoft for support and sales inqueries



Submit a bug report


Installer (Source edition) for registered users:

Download »

Past releases (Source edition):
7.0 | 7.1 | 7.2


Installer (Jar edition) for registered users:

Download »

Past releases (Jar edition):
7.0 | 7.1 | 7.2


On the library home page you will find a link to the download area for registered users. The credentials (user name and password) will be sent to you when a new release is available.

A trial version download is not available. To check if the library meets your requirements, you can try the online demo or purchase a Single Developer license, which includes a 14 days full money back guarantee. This allows to test the full version of the library without any risk. The reseller (ShareIt) will give a full refund if you find that the library does not work as expected.

Picture Support

The library does not convert embedded pictures. It extracts binary picture data from the RTF document. The picture data may be in WMF, JPEG, or other formats. For small images, embedding as Data URI is possible, and - depending on the image format - no additional data conversion is required .


Yes, each developer that uses our products must have their own license.

No, the licenses are perpetual. However, you will be using the last product version released before your free upgrade period expired.

Yes! If you are a registered user, please contact Habarisoft and ask for discount coupon code.


No, the source code is not redistributable, even if you change it. Under no circumstances is it acceptable to disclose the source to any third party.

Server Deployment license

Server Deployment Licenses are required if ScroogeXHTML for the Java platform is used on the server side of a client/server application.

No. A Server Deployment license covers all applications on the server.

No. Server Deployment license are perpetual, except in the case of license violations.

No. The proof of purchase for Server Deployment licenses is your license document.



Advocate Health Care

APT Business Solutions

Becton, Dickinson and Company

Canadian Natural Resources

Denim Group



GE Medical Systems

Glencore International AG

Include Software

Iodine Software

洁茹 牛

Mayo Foundation

Manuh Solutions

Micrologos Software Developer


NxGen Software

PENTA college

Philips Medical Systems

ProClarity Corporation

QuadraMed Corporation

상호 정

Saxos Informatica

Scherer Software


TIP Technologies

YADA Systems


"This is an excellent unique product that has saved us many hours of work. It is simple to use with lots of documentation."

Stewart S., UK

"Scrooge has really helped me out! I'm converting a database of 10,000 questions in RTF into HTML, Scrooge has been invaluable!"

J. M., USA

"It works great and it is stunningly fast - on production, converting 115.000 documents takes 25 seconds instead of 9 hours."

Robert S., Germany

"We are very, very glad with this Component"

M. R., Germany