Screenshot a website in dark mode
To screenshot a website in dark mode, add dark_mode=true to a CurlShot request. The browser then tells the page that the visitor prefers a dark theme, exactly as a phone or computer set to dark does, and the screenshot shows the dark version. It works on every site that has a dark theme; a site without one looks the same as before.
curl "https://curlshot.com/api/v1/screenshot?access_key=YOUR_ACCESS_KEY&url=https://example.com&dark_mode=true" \
--output dark.pngHow to take a dark mode screenshot of a website in three steps
- 1
Create a free account and copy your access key.
- 2
Add dark_mode=true to the request, next to the address of the page.
- 3
Fetch it and save the image. Leave the option out to get the light version.
What dark_mode changes, and when it does not
dark_mode=true tells the page that the visitor prefers a dark theme, the same signal a phone or computer set to dark sends. Whether the page turns dark is up to the site.
Show the table (3 rows)
| The site | Result | What to do |
|---|---|---|
| Follows the system setting (prefers-color-scheme) | The dark theme | Nothing: this is how most dark themes work. |
| Has its own theme switch only | Stays light | Press the switch with click, or set the theme cookie the site uses with cookies. |
| Has no dark theme | Looks the same as before | Add your own CSS with styles, if you need a dark look anyway. |
- Take the same request twice, with and without dark_mode, for a light and dark pair.
- reduced_motion=true asks the page to stop its animations, so both captures match.
- dark_mode changes the page being captured. It works with full pages, devices, element captures and PDF.

What people use it for
- Light and dark screenshots of your product, side by side
- Store listings, docs and landing pages that show both themes
- Check that a change did not break the dark theme
- Previews that match the theme of the app they appear in
For developers: one request
The same thing from your own code. It is a plain HTTP request, so it works from any language. Create a free account to get an access key.
Questions people ask
How do I take a screenshot of a website in dark mode?
Send a CurlShot request with dark_mode=true. The page is asked for its dark theme before the screenshot is taken.
Does it work on every website?
It works on every site that follows the visitor's system setting, which is how most dark themes work. A site with no dark theme, or one that only changes with its own switch, stays light.
Can I also turn animations off?
Yes. reduced_motion=true asks the page to stop its animations, which gives the same screenshot every time.
Can I combine it with a phone view or a full page?
Yes. dark_mode works together with every other option: device presets, full_page, element captures and PDF.
Related tools
- Screenshot APIA screenshot API for developers. One HTTP request turns a URL, HTML or Markdown into a PNG, JPEG, WebP or PDF. Full page, devices, blocking, cache, MCP.
- Mobile screenshotSee and screenshot any website as it looks on an iPhone, an Android phone or a tablet, without picking one up. Paste the address. Free to try, also an API.
- Full-page screenshotTake a screenshot of a whole web page, from the top to the very bottom, as one image. Paste the address, nothing to install. Also available as an API.