Guide
Explore browser-native image blending with real layers, rather than simulated screenshots. Combine images, alpha colors, gradients, patterns, shapes and typography, then inspect the result at real mobile, tablet and desktop viewport widths. Choose an editable effect preset or create your own composition and export scoped HTML, CSS, Tailwind CSS v4 or a standalone example. Uploaded image preparation happens on your device.
1Choose a technique and source
Use Mix for independent DOM layers, Background for CSS background-image lists, or Combined for both. Keep the local illustration or upload a validated raster image.
2Build and order the layers
Add up to eight image, color, gradient, text, pattern or shape layers. Edit blend modes, alpha, opacity, geometry and optional filters. Lists are displayed top first.
3Compare native results
Open the native mode gallery, compare up to four modes, inspect original/individual layers and adjust isolation against the parent backdrop. Resize the real iframe viewport.
4Export code and assets
Copy CSS, semantic HTML, CSS variables or Tailwind v4 utilities with supplemental styles. Download CSS or standalone HTML and choose embedded prepared PNGs or relative asset paths. Save settings as versioned JSON.
This editor creates reusable CSS rules for combining source and backdrop colors. A blend mode determines how their channels interact; opacity then contributes to compositing. The result depends on both inputs, their alpha, layer order and the applicable stacking context.
A source layer blends with the backdrop rendered beneath it. Opaque multiply uses source × backdrop for each normalized channel, while screen uses source + backdrop − source × backdrop. Transparent compositions also require alpha compositing, so these simple equations are not a complete model for every layered image.
For independent elements, start with .composition { position: relative; isolation: isolate; } and .overlay { mix-blend-mode: multiply; opacity: .7; }. The overlay blends with its rendered backdrop in the applicable compositing context. It can contain a photo, gradient, shape or text.
For one element, use background-image: linear-gradient(#6366f1, #6366f1), url("images/source.png"); background-blend-mode: multiply, normal; background-size: cover; background-repeat: no-repeat;. Background images blend with one another and the element background color, independently of outside content.
Mix affects an element as a rendered group and can blend its content with a backdrop. Background blending operates inside one element and does not blend its text or children. Combined mode supports a background stack plus independent elements and optional internal background blending in painted element layers.
Normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color and luminosity are available. Plus-lighter and plus-darker are additional mix values, offered only when detected; neither is exported as a background blend value.
Multiply commonly darkens photos under a color overlay and leaves white relatively neutral. Darken compares channel values. Color-burn can produce stronger darkening and clipping. Different source colors change these effects, so inspect the native gallery using your own image.
Screen commonly brightens and makes black relatively neutral. Lighten keeps lighter channel values, while color-dodge can brighten strongly. These modes are useful starting points for glow-like overlays, but their output still depends on the backdrop.
Overlay chooses multiply or screen behavior from the backdrop. Hard-light makes a related choice from the source. Soft-light provides gentler lighting and contrast changes. Adjust layer opacity to moderate the effect instead of assuming one preset fits every photo.
Difference uses absolute channel differences and exclusion produces a related lower-contrast effect. Hue, saturation, color and luminosity transfer selected color components while retaining others from the backdrop. Difference text may invert over an image but is not automatically accessible.
Add an image and a color layer, place the color above the image and select a mode. Color alpha multiplies any alpha already present in HEX, RGB or HSL input. Element opacity affects the whole element. Background raster images have no independent CSS opacity; use a DOM image layer when that control is needed.
Linear, radial and conic gradients support two to twelve color stops with individual alpha and positions. A repeating gradient needs a positive authored period. Background size, position and repeat move the entire gradient image; the radial/conic center is a separate position inside that image.
The first editor item is the frontmost layer within its stack. Element layers receive consistent explicit stacking values, and the first CSS background image paints above subsequent images. Pattern paints may expand into several list entries; image, mode, size, position and repeat lists remain aligned. DOM layers paint above the container backgrounds.
Add another image, choose screen or lighten as a starting point and adjust opacity, scale and position. The Double Exposure Style preset uses a second local Architecture illustration that you can replace. This is a layered CSS composition, not a destructive photo edit.
The treatment combines grayscale, contrast and brightness filters with a two-color gradient layer. Choose shadow and highlight colors, overlay opacity and a blend mode. These are duotone-style effects, rather than mathematically exact two-color tonal mapping. The original source remains available.
Brightness, contrast, saturation, grayscale, sepia, hue rotation, blur, invert and opacity filters reuse the Filter Generator utilities. Their authored order is preserved because filtering order can affect the result. A single CSS background list entry has no independent filter property; use an element for filtered images.
DOM images support cover, contain, fill, none and scale-down with independent object positions. CSS backgrounds use background-size, background-position and background-repeat instead. Element width, height, maximum width, preferred ratio and intrinsic constraints jointly determine its final box.
Isolation: isolate starts a local blending group. Isolation: auto can allow the parent backdrop to participate when another stacking context does not intervene. Ancestor transforms, opacity and other properties can change that backdrop. The generated composition root avoids an accidental transform, opacity or z-index so the isolation control remains meaningful.
Use an opaque parent solid or gradient, a transparent container background and a neighboring decoration to inspect isolation. Checkerboard in the preview gutter is separate from the exported backdrop. Explicitly enable actual-parent checkerboard if it should participate. An opaque full-size base image may conceal the difference between auto and isolate.
Choose a safe system font stack, semantic element, size, weight, line height, spacing, alignment and text opacity. No external font service is loaded. Disable text blending for plain compositing and test essential text against actual images. Forced-colors styles restore plain text and remove decorative effects; neither feature guarantees adequate contrast.
Inspect the final composition, original image, side-by-side result, before-and-after reveal or selected individual layer. The lazy gallery renders all sixteen native modes from the same configuration, with apply/copy controls and up to four selected comparisons. These cards are not static screenshots.
Configure mobile and tablet breakpoints, composition dimensions and per-layer visibility, modes, opacity, image fit/position, background size and text size/alignment. Preview uses a real iframe viewport. Zoom changes displayed scale independently of configured viewport width; the browser reports the actual composition dimensions.
Upload validated JPEG, PNG, WebP or browser-supported AVIF. Actual headers and decoding are checked; arbitrary SVG, HTML and remote image fetching are excluded. Sources are limited to 10 MiB, 8192px per side and 20 megapixels, with 50 MiB aggregate source bytes. Prepared PNGs are bounded to 1600px per side and 3 MiB each, with aggregate memory budgets and reference-aware URL cleanup.
The five tabs provide scoped CSS, semantic HTML, Tailwind CSS v4, CSS custom properties and a standalone example. Embedded prepared PNG references are bounded to 8 MiB; path exports require separately downloaded assets. Configuration JSON excludes binary image data, so missing uploads must be reselected. Final compositions are exported as code, not rasterized PNG images.
Generated classes include native mix-blend utilities, isolation, arbitrary opacity/background properties and responsive variants. Compile them through your Tailwind v4 build and retain the supplemental scoped CSS for image assets, advanced background lists, filters, exact media rules and unsupported-mode fallbacks.
For React or Next.js, convert class to className, keep semantic content and image dimensions and import the stylesheet. When adapting to next/image, follow its own sizing and source rules. In WordPress, use the supported HTML block and stylesheet mechanisms, provide asset files and check theme overrides and sanitization.
Feature guards preserve normal compositing or hide decorative overlays when a requested mix mode is unavailable; essential text and the base remain visible. Background blending has a source-image fallback. If output looks different after copying, check asset paths, opaque covering layers, actual backdrop colors, alpha, filter order and ancestor stacking contexts. Test supported browsers rather than relying on an unsupported version claim.
- Image overlays for hero sections, product cards and portfolio images.
- Duotone-style photography and double-exposure-style compositions.
- Blended headings, brand wordmarks and promotional banners.
- Learning isolation, stacking contexts and the differences between element and background blending.
- Native CSS rendering shared by preview and export.
- Sixteen standard modes, feature-detected additional mix modes and aligned background property lists.
- Eight editable layers with keyboard reorder controls and bounded local image preparation.
- Forty presets, native comparisons, real viewport previews and accessible output fallbacks.
What is a CSS Blend Mode Generator?
An editor that generates native image, color, gradient and text blending compositions with reusable HTML and CSS.
How do CSS blend modes work?
They combine a source with its backdrop using a selected blending function and compositing rules. Source colors, backdrop colors and alpha all matter.
What is mix-blend-mode?
The CSS property that blends a rendered element with its backdrop within the applicable stacking and compositing context.
What is background-blend-mode?
The property that blends an element's CSS background images with each other and its background color.
What is the difference between mix-blend-mode and background-blend-mode?
Mix blends rendered elements; background blending operates inside one element and does not blend its text or children.
How many standard CSS blend modes are available?
Sixteen standard modes are included. Additional plus-lighter and plus-darker mix values are feature-detected and excluded from background options.
What does multiply blend mode do?
It multiplies normalized source and backdrop channels, usually darkening the result. Alpha adds further compositing behavior.
What does screen blend mode do?
It commonly lightens by inverting, multiplying and inverting color channels. Black is relatively neutral for opaque inputs.
What does overlay blend mode do?
It combines multiply and screen behavior according to the backdrop colors.
How do I blend an image with a background color?
Use an image and color overlay in Mix mode, or put an image in the background stack and set the composition background color.
How do I add a gradient overlay to an image?
Add a linear, radial or conic layer above the image, edit stops and choose a blend mode and opacity.
Can I blend multiple images together?
Yes. Add image layers within the eight-layer limit, reorder them and customize their modes and positioning.
Can I create duotone-style effects using CSS?
Yes. Configure grayscale filtering, two gradient colors, contrast, brightness, opacity and blending. These treatments are not exact two-color tonal mapping.
Can I blend text with an image?
Yes, with a text element in Mix or Combined mode. Disable text blending for plain compositing and verify readability yourself.
What is the CSS isolation property?
Isolation: isolate creates a local blending group; auto can let the surrounding backdrop participate when no other stacking context prevents it.
Why is my CSS blend mode not working?
Check covering opaque layers, backdrop colors, stacking contexts, asset loading, opacity and browser support. Background modes do not blend child text.
Can I combine CSS filters and blend modes?
Yes. Compatible element layers support nine ordered filters before blending. Individual CSS background entries have no independent filter property.
Can I use blend modes in Tailwind CSS?
Yes. Compile the generated Tailwind v4 utilities and retain the supplemental CSS for advanced effects, image assets and fallbacks.
Can I use generated CSS in React and Next.js?
Yes. Adapt the HTML to JSX, import the stylesheet and keep valid local image sources and dimensions.
Can I use blend modes in WordPress?
Yes, through supported HTML and stylesheet mechanisms. Supply asset files and inspect theme styles and sanitization.
Can I upload my own images?
Yes. JPEG, PNG, WebP and browser-supported AVIF are validated and prepared locally with source, dimension and aggregate limits.
Are uploaded images sent to a server?
No. Image validation, preparation and preview are client-side. Configuration exports contain settings and metadata, not image bytes.
Is the CSS Blend Mode Generator free?
Yes. Editing, previews, local uploads, copy, code downloads and configuration import/export require no account or payment.