Providers & Prices

What is HtmlUnit? Facts and alternatives

htmlunit.sourceforge.io

HtmlUnit (sourceforge.io) is a headless browser written in Java. It loads pages, fills forms, clicks links and runs JavaScript, to test sites or pull data.

Checked

Licence Apache-2.0 · 951 GitHub stars, counted 26 Nov 2026 · last release 5.9.0, 24 Nov 2026 · last code change 25 Nov 2026 · 30 alternatives in browser automation · Guide: Scrape a JavaScript website with Playwright, and when not to

Visit htmlunit.sourceforge.io ↗Code on GitHub ↗

What it is

ProductCategoryPriceRating
HtmlUnit: A headless browser written in Java. It loads pages, fills forms, clicks links and runs JavaScript, to test sites or pull data. Good for: Java developers who need a browser without a screen for tests or for reading data from websites.Browser automation 31Freeopen source50 6 facts

6 facts, each linked to its page. Category: tools we compare. Rating: our formula.

Data: JSON · CC BY 4.0

Facts

htmlunit.sourceforge.io · github.com/HtmlUnit/htmlunit

Spec facts 6 · 9 not listed yet
How you use it 2
Other official librariesJavaJava library itself, not an SDK
Ready-made integrationsWebDriver, Arquillian Drone, Serenity BDDTools that use HtmlUnit as their browser
Where it runs 2
Can I host it myself?YesJava library you run in your own app
Code licenceApache-2.0
Code 2
Written inJava
Latest release5.7.0, 02 Novyear not shown on page

9 spec facts not listed on the company's pages yet. Seen one? Send us a source.

Who says what

What HtmlUnit says about itself

0 claims

We found no page where HtmlUnit sums itself up.

What HtmlUnit says about others

0 claims about 0 companies

No claims by HtmlUnit about others yet.

What others say about HtmlUnit

7 claims by 6 companies

Features 7
WhoMain claimSource
capsolver.com/blog/web-scraping/best-java-web-scraping-librariesChecked 16 Nov 2026 · Published 7 May 2026 · 2 claims
CapSolverHtmlUnit can invoke pages, fill forms, click links, manage cookies, and support many AJAX workflows.“It can invoke pages, fill forms, click links, manage cookies, and provide JavaScript support for many AJAX workflows”
CapSolverHtmlUnit is not a full replacement for Chrome, Firefox, or WebKit.“HtmlUnit is not a full replacement for Chrome, Firefox, or WebKit.”
Bright DataHTMLUnit is a GUI-less browser for the Java ecosystem.“is a GUI-less browser for the Java ecosystem.”brightdata.comChecked 16 Nov 2026 · Published 20 Mar 2024
DecodoHtmlUnit simulates a browser in Java, executes JavaScript without an external browser binary, and handles cookies and sessions.“It is a headless browser that simulates a browser in Java, executes JavaScript without needing an external browser binary, and handles cookies and sessions.”decodo.comChecked 16 Nov 2026 · Published 30 Apr 2026
ScrapflyHtmlUnit runs JavaScript through Rhino rather than Chromium, so it does not use a real browser engine.“Keep in mind that HtmlUnit runs JavaScript through Rhino, so it doesn't use Chromium.”scrapfly.ioChecked 16 Nov 2026 · Published 5 Nov 2026
ScrapingBeeHtmlUnit does not support IP rotation, so rate-limited sites can block it.“HtmlUnit does not support IP rotation, making it vulnerable to IP blocking if a website implements rate limiting.”scrapingbee.comChecked 16 Nov 2026 · Published 24 Sept 2026
ZenRowsHtmlUnit is a Java-only headless browser with full JavaScript rendering, and no screenshot support.“HtmlUnit supports full-scale JavaScript rendering.”zenrows.comChecked 16 Nov 2026 · Published 24 Sept 2024

These are the companies' own claims, each linked to its page. A company name opens both sides.

Sources

  1. htmlunit.sourceforge.io

Checked: facts 16 Nov 2026, spec 26 Nov 2026.