html2svg is a Chromium-based renderer that converts web pages and HTML canvas content into vector or bitmap files. It can generate SVG, PDF, PNG, JPEG, and WebP output while using Chromium for accurate browser-style rendering. The command-line interface accepts a URL and allows developers to control viewport dimensions, output format, capture timing, and full-page rendering. An included HTTP server exposes the same conversion capabilities for network-based workflows. Docker images provide a straightforward way to run the tool without compiling its customized Chromium environment locally. The project modifies Chromium and Electron components to support its rendering pipeline. html2svg also served as the original foundation from which the Carbonyl terminal browser evolved.
Features
- HTML and canvas rendering
- SVG and PDF vector output
- PNG, JPEG, and WebP image export
- Full-page and custom viewport capture
- Command-line conversion interface
- Built-in HTTP rendering server