Skip to content
Visual CSS Tools logo visual.css.toolsGradient studio Open the editor
CSS · SVG · Canvas

Design the gradient. Copy the code.

Visual CSS Tools is a cross browser gradient generator for web designers. Set your color stops, shape a linear or radial fill, then export clean CSS, SVG, or Canvas in a single click.

Runs 100% in your browser No account needed Free to use
Live editor

The gradient generator

Every change updates the preview and the code together. Pick a stop, move a value, and see the result right away.

linear · 73deg 640 × 360

Color stops

    What it does

    A focused toolset for gradients that hold up

    Every control maps to a real CSS feature, so the preview and the code always agree. Here is what the editor covers.

    Keyword or angle

    Set a linear gradient with a direction keyword or an exact angle in degrees.

    Shape or size

    Define a radial gradient with a shape and extent keyword, or give it an explicit size and position.

    Repeating fills

    Switch on repeating radial and linear gradients when you need a tiled pattern.

    CSS, SVG, and Canvas

    Convert every parameter combination, where possible, to CSS, SVG for older engines, Canvas, and legacy Webkit syntax.

    Any CSS unit

    Express values in percent, px, pc, pt, mm, cm, or in, not just percent.

    Extent and size

    Use a radial extent keyword and shape, such as far corner circle, or enter an exact width and height.

    Precise placement

    Place a radial center with horizontal and vertical controls for left, center, right, top, and bottom.

    Angle and direction

    Set an exact angle in degrees, or start from one of eight direction shortcuts.

    Unit conversion

    Convert between unit types without leaving the editor.

    Saved presets Planned

    Save your own gradient recipes for later.

    Named colors Planned

    Pick from the full set of standard CSS color names.

    Photoshop style picker Planned

    Use a wheel based picker with a familiar feel.

    Runtime API Planned

    Convert CSS to SVG or Canvas at runtime from your own code.

    User guide

    Three steps to usable code

    The controls are built to stay out of the way. Here is the short version, with the full walkthrough in the guide.

    Pick the type

    Choose linear or radial, then set the angle, shape, extent, and position.

    Tune the stops

    Add color stops, edit hex values or alpha, and set each position.

    Take the code

    Switch between CSS, SVG, Canvas, and legacy output, then copy or download.

    Who this is for

    Visual CSS Generator is built for generating CSS3, Canvas, and SVG code for every linear and radial gradient, so it targets modern browsers including IE9. It can also generate code for the old Webkit syntax.

    For a fallback before IE9 you have options: for IE8, include the generated inline PNG data URL in your CSS; for IE7 and lower, save the generated Canvas image as a PNG file.

    Getting started

    Type a value directly, or use the arrow keys, the mouse wheel, or the graphical arrows beside a field. Hover between the arrows, then click and drag up or down. Hold Shift to move sideways and Control to reverse the direction.

    The gear icon in the corner sets precision, with options such as 100, 10, 1, 0.1, and 0.01. The output buttons switch the preview between CSS, SVG, Canvas, and legacy Webkit. The legacy button is enabled only in Webkit based browsers such as Chrome or Safari.

    Limitations
    • Values cannot use em or ex units.
    • All color stop positions must share one unit type, such as percent, px, pc, pt, mm, cm, or in.
    • The old Webkit radial syntax cannot express an elliptical gradient, so elliptical gradients render as circles there.
    Browser notes

    Some older browser versions could not render a CSS radial gradient whose size is set explicitly as a width and height. If a gradient looks different in an older engine, use SVG or Canvas output when you need an exact size.

    Small differences between CSS and SVG or Canvas rendering are normal, because engines compute gradients in different ways. If a difference looks wrong across browsers, send the CSS code to the address in the contact section.

    Read the full guide
    About

    Made by a developer, for developers

    Visual CSS Tools is a browser based gradient editor for CSS, SVG, and Canvas. It is a small, focused project, and everything runs on your device.

    If you like what I have built here and have a project that needs work, send a note. I am a native English speaker living in Bulgaria, with a little Bulgarian to get by.

    Feature ideas, bug reports, and work enquiries are all welcome.

    Start a conversation

    Email is the fastest way to reach me. Replace the words with the usual symbols.

    visualcsstools at gee mail dot com

    Areas I work in

    VB.NET ASP.NET Webforms JavaScript jQuery jQuery UI C#

    You can also send a bug report with the CSS code that caused the problem, and I will take a look.

    Credits

    Standing on good tools

    jQuery UI, Farbtastic, and Felix Nagel shaped the original editor. Full credits and reference links live on the credits page.

    View credits