Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
minimalistic headless WebKit-based JavaScript-driven tool
JavaScript Python C C++ Other
branch: master

This branch is 1614 commits behind ariya:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

PhantomJS is a minimalistic, headless, WebKit-based JavaScript-driven tool.

It has native (and high performant) support for DOM handling, CSS selector, JSON, Canvas, and SVG.

Read the announcement blog post.

PhantomJS runs on Linux, Windows, and Mac OS X. Refer to the build instructions for details.

See also quick start guide and more advanced examples which show various PhantomJS scripts, covering:

  • getting driving direction
  • showing weather forecast conditions
  • finding pizza in New York
  • looking up approximate location based on IP address
  • pulling the list of seasonal food
  • running regression tests from command line
  • producing PDF version of a Wikipedia article
  • rasterizing SVG to image

Do not forget to consult the concise API Reference.

If you want to contribute, please read the Contribution Guide.

Something went wrong with that request. Please try again.