snaptxt.app

CSS Gradient Generator

Build linear, radial, and conic CSS gradients visually — drag stops, pick presets, copy the CSS. Free, in your browser.

Gradient type
CSS
Presets
  • 0%
  • 100%

Stays in your browser.

The preview renders the CSS directly with no canvas, no server. Your color choices and saved gradient live in localStorage on your device.

How to use it

  1. 1Pick a gradient type — linear (angle), radial (shape + position), or conic (start angle + position).
  2. 2Click a preset to start fast, or build from scratch by adjusting color stops below.
  3. 3Each color stop has a hex color and a position from 0 to 100. Add as many as you need with the + Add button; minimum two.
  4. 4The preview updates live. Click Copy CSS to grab the ready-to-paste declaration.

Common use cases

  • Build a hero or call-to-action background for a landing page without firing up Figma.
  • Prototype a brand palette quickly by tweaking color stops in the preview.
  • Generate the conic gradient for a color wheel, donut chart, or progress indicator.
  • Recreate a gradient from a screenshot — paste your hex codes into stops and tune positions until it matches.
  • Save a project gradient to localStorage as a working scratchpad while you design.

Frequently asked questions

Is my work uploaded anywhere?
No. The preview is a plain CSS background rendered by the browser — there's no canvas, no server, no third-party API. Your gradient state lives in localStorage on your device so the page picks up where you left off.
What's the difference between linear, radial, and conic?
Linear runs colors along a straight axis you set with an angle. Radial radiates outward from a point (the position) in a circle or ellipse. Conic sweeps around a point like the colors on a color wheel — handy for donut charts, progress rings, and decorative effects.
How do color stops work?
Each stop is a color anchored at a percentage of the gradient's length (0 to 100). Between two stops, the colors interpolate. Add more stops to control transitions — a third stop in the middle, for instance, makes the gradient bend through that color rather than going straight from start to end.
Does the generated CSS work in every browser?
linear-gradient and radial-gradient have been supported in every browser for years. conic-gradient is supported in Chrome, Edge, Firefox, and Safari since 2021. For Internet Explorer support, use a fallback solid color above the gradient declaration.
Can I copy just the value, without the `background:` prefix?
The CSS textarea outputs both forms (one with the `background:` prefix, one with `background-image:`). Select the part you want and copy — both work. If you only want the gradient function itself, copy from the opening keyword (linear-gradient, etc.) to the closing parenthesis.
Why does my conic gradient look pixelated?
Conic gradients are rendered as bitmaps in some browsers, so very large gradients at small angles can show banding. Adding more intermediate stops or using a smaller container usually smooths it. The CSS itself is fine — the rendering is the limitation.

Related tools

Base64 Encode / Decode
Encode and decode text and files to and from Base64.
HTML Live Preview
Write HTML, CSS, and JavaScript and see the result instantly.
JSON Formatter
Format, validate, minify, diff, and explore JSON — with optional on-device AI that summarizes any payload in plain English.
JWT Decoder
Inspect the header, payload, and expiry of any JSON Web Token — with optional on-device AI that explains what the token grants in plain English.
SQL Formatter
Beautify, format, and minify SQL queries for any dialect — with optional on-device AI that explains what a query does in plain English.
Unix Timestamp Converter
Convert Unix timestamps to dates and back, in any timezone.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes in your browser.
JSON to TypeScript
Generate TypeScript interfaces or type aliases from JSON.
Markdown to PDF
Convert Markdown to a beautifully styled PDF in your browser.
QR Code Generator
Make QR codes for websites, Wi-Fi passwords, contact cards, social handles, email, SMS, and more. Download as PNG or SVG — or as a ZIP with one branded QR per social platform.
Password Generator
Generate strong, secure passwords in your browser. Nothing is sent or saved to any server.
Text Diff
Compare two pieces of text and see line-by-line, word-by-word, or character-by-character what changed.
UUID / ULID Generator
Generate UUID v4, UUID v7, or ULID identifiers in bulk, instantly in your browser.
SVG to PNG / JPEG / WebP
Convert SVG to PNG, JPEG, or WebP at any size — quality slider, transparent or colored background, copy to clipboard. Free, in your browser.
URL Encoder / Decoder
Encode or decode URLs and query parameters with component-vs-full-URI scope, plus a query-string breakdown. Free, in your browser.
Regex Tester
Test JavaScript regular expressions with live highlighting and a capture-group inspector — plus an AI regex generator that turns plain-English descriptions into regex (on-device Gemini Nano).
Color Converter
Convert colors between HEX, RGB, HSL, HSV, and OKLCH, and generate tint, shade, and harmony palettes. Free, in your browser.
HTML ↔ Markdown Converter
Convert HTML to Markdown or Markdown to HTML with a live preview. GFM tables, fenced code blocks, inline formatting. Free, in your browser.
Cron Builder
Build cron expressions visually or describe the schedule in plain English and let on-device AI write it for you. Plain-English explanation, next 5 runs, presets.
YAML ↔ JSON Converter
Bidirectional YAML / JSON conversion with multi-document support and indentation control. Free, in your browser.
Convert CSV to JSON
Bidirectional CSV / TSV / JSON conversion. Custom delimiters, header detection, auto-typed numbers. Free, in your browser.
Word & Character Counter
Live word, character, sentence, and paragraph counts with reading and speaking time. Free, in your browser.
Lorem Ipsum Generator
Generate placeholder text — paragraphs, sentences, words, or HTML-wrapped output. Free, in your browser.
JWT Generator
Sign JSON Web Tokens with HS256/384/512, RS256/384/512, or ES256/384. In-browser key generation, no server.
Image Compressor
Compress PNG, JPEG, and WebP images with a live quality slider and side-by-side preview. Free, in your browser.
Favicon Generator
Generate the full favicon set — ICO, PNGs at every size, apple-touch-icon, and PWA manifest — from one image. Free, in your browser.
AI Code Explainer
Paste code, get a plain-English explanation from on-device Gemini Nano — no upload, no API key, no signup.
Box Shadow Generator
Build CSS box-shadows visually with offset, blur, spread, opacity, and inset across stacked layers. Live preview, copy-ready CSS.
Mermaid Live Editor
Render Mermaid diagrams live — flowcharts, sequence, class, state, ER, gantt, pie, and mindmap. Export SVG or PNG.
X.509 Certificate Decoder
Paste a PEM-encoded X.509 certificate — inspect subject, issuer, validity, SANs, key usage, and SHA fingerprints. Free, in your browser.
Australian Medicare Number Generator
Generate and validate Australian Medicare card numbers instantly in your browser. Uses the official check-digit algorithm — perfect for testing and development.
Australian ABN Generator & Validator
Generate and validate Australian Business Numbers (ABN) using the official weighted checksum algorithm. Perfect for testing and development — runs entirely in your browser.
Australian ACN Generator & Validator
Generate and validate Australian Company Numbers (ACN) using the official check-digit algorithm. For testing and development — runs entirely in your browser.
Australian Tax File Number (TFN) Validator
Validate Australian Tax File Numbers (TFN) — checks format and the official check-digit algorithm. No TFN generation to protect against misuse. Runs entirely in your browser.
Australian BSB Number Validator
Validate Australian Bank State Branch (BSB) numbers — checks the 6-digit format and identifies the bank from the first two digits.
New Zealand IRD Number Generator
Generate and validate New Zealand IRD (Inland Revenue Department) numbers for testing and development. Uses the official check-digit algorithm.
New Zealand Business Number (NZBN) Generator
Generate and validate New Zealand Business Numbers (NZBN) — 13-digit GS1 identifiers used by NZ companies. For testing and development.
New Zealand Bank Account Number Validator
Validate New Zealand bank account numbers — checks the BB-BBBB-AAAAAAA-SS format, bank code, and overall structure.
Text Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE, Title Case and more — instantly in your browser.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal — type in any field and the rest update live.
XML Formatter & Validator
Format, validate, and minify XML documents with custom indentation — uses the browser's native DOMParser, nothing uploaded.
CSS & JS Minifier
Minify CSS and JavaScript online — strip comments, collapse whitespace, and see byte-size savings. Runs entirely in your browser.