Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

HtmlUnit

Free#54 of 62 in Browser Automation Tools

HtmlUnit: A free, self-hosted Java library for browser-like page automation without a graphical browser. Ranked #54 of 62 in Browser Automation Tools by our editors (3.4/10); pricing: Free plan; best for java teams automating browser-like page interactions.

3.4/10Editor score
HtmlUnit3.4 Visit HtmlUnit

At a glance

  • Editor score
    3.4 / 10
  • Pricing
    Free plan
  • Best for
    Java teams automating browser-like page interactions
  • Free plan
    Yes
  • Paid from
    Free
  • Cloud execution
    No
  • Facts checked
    23 Sep 2026
HtmlUnit screenshot
  • Where it wins

    • Loads pages, executes JavaScript, and provides DOM traversal with CSS selectors and XPath.
    • Handles forms, links, cookies, request headers, HTTP/HTTPS, and proxy servers.
    • Can simulate Chrome, Firefox, or Edge behavior and runs without a paid plan.
  • Where it doesn't

    • Runs inside a Java application rather than as a vendor-hosted browser service.
    • No cloud execution is described.
    • Documentation is the listed support channel.

Our verdict on HtmlUnit

HtmlUnit is a GUI-less browser library for Java programs. It suits developers building browser automation, testing, or web scraping into Java applications without running a graphical browser. Distributed as a Maven or Gradle dependency, it can load web pages, execute or accept injected JavaScript, inspect and traverse the DOM, interact with forms, and click links. Its browser-like network communication and cookie handling make it relevant when a task depends on state persisting across requests.

The feature set is focused on page interaction from application code. DOM work includes CSS selectors and XPath; network options include HTTP/HTTPS, request headers, and proxy servers. Browser-version configuration can simulate Chrome, Firefox, or Edge behavior. HtmlUnit is open source and has a free plan, with Linux, Windows, macOS, and self-hosted deployment listed. It is a library run within the user's application, not a vendor-hosted browser execution service, so teams should account for that model when deciding how to run and maintain automation.

This is a fit for Java teams that need lightweight page loading, scripting, DOM access, and form interaction without a graphical browser. It is less suited to buyers seeking cloud execution, a listed integration ecosystem, or advanced test-runner capabilities: those are not part of the described offer. Support is through documentation. Choose HtmlUnit when a Java dependency and browser-like controls are enough; consider another tool if hosted runs or a broader automation platform are central requirements.

Your product? Our editors can test HtmlUnit in depth and publish a review, labelled as paid · from $149/mo →

HtmlUnit pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on htmlunit.org

HtmlUnit fact sheet

Free planYes
Paid fromFree
Browser enginesMultiple
Language supportMultiple
Cloud executionNo
Self-hosted optionYes
Parallel runsNot verified
Monthly run limitNot verified
DeploymentSelf-hosted
PlatformsLinux, Windows, macOS
SupportDocs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
PricingFree plan
Websitehtmlunit.org
Facts checked23 Sep 2026

Alternatives to HtmlUnit

See all HtmlUnit alternatives →

Used HtmlUnit? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used HtmlUnit for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — HtmlUnit 3.4/10

HtmlUnit is listed in our Browser Automation Tools directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/htmlunit/"><img src="https://www.itechguides.com/best/badge/htmlunit.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update