Home › Image Tools › AI Style Transfer

AI Style Transfer

Pick a photo and a style image, such as a painting, a fabric pattern or one of the built-in artworks, and a neural network repaints your photo with that style's colors, strokes and textures. It runs on your own device with TensorFlow.js, with a strength slider, original-color option and before/after comparison.

Last updated:

photofull style
Advertisement
Advertisement

How to use the AI Style Transfer

  1. Add your photo by dropping it on the first box, choosing it or pasting it. A sample photo is loaded to start with.
  2. Choose a style: click one of the built-in styles or upload your own style image, for example a photo of a painting, a mosaic or a fabric.
  3. Click Apply style. The first time, the AI model downloads and is cached; then your photo is repainted in a few seconds.
  4. Fine-tune with Style strength, Brush scale and Keep the photo's original colors, and drag across the picture to compare.
  5. Download the result as PNG or JPG.

How fast arbitrary style transfer works

The original neural style transfer (Gatys, Ecker and Bethge, 2015) optimized a picture for minutes until its deep features matched the content of one image and the texture statistics of another. Later work trained feed-forward networks that stylize in one pass, first one network per style, then networks that accept any style. This tool uses that last approach:

  1. Style prediction. A MobileNet-based network looks at the style image (resized by the Brush scale setting) and outputs a 100-dimensional style vector.
  2. Strength mix. The same network also reads your photo. The final vector is strength × style + (1 − strength) × photo, which gives a natural-looking partial effect.
  3. Stylization. A transformer network with conditional instance normalization repaints the photo using that vector, at the AI working size you selected.
  4. Original colors (optional). The brightness of the result is combined with the color of your photo, keeping only strokes and texture.

Settings guide

SettingLowerHigher
Style strengthSubtle, the photo dominatesFull style, strong strokes and palette
Brush scaleLarge strokes: style image analyzed small (192 px)Fine strokes: style image analyzed larger (384 px)
AI working sizeFaster, less detail (384 px)More detail, needs more memory (1024 px)
Texture (quick mode)Smooth painted lookHeavy texture copied from the style image

Tips: portraits look best with lower strength and original colors kept, landscapes and architecture handle full strength well, and a style image with clear, repeating texture gives more convincing results than a detailed scene.

Frequently asked questions

What is AI style transfer?

Style transfer is a technique that repaints one image (the content) using the visual style of another (the style): its colors, brush strokes and textures. A neural network separates what is in the photo, such as shapes and objects, from how a picture looks, and combines the content of your photo with the look of the style image.

How does arbitrary style transfer work here?

The tool uses the fast arbitrary style transfer method of Ghiasi and colleagues (2017) in a version distilled for browsers. A style-prediction network turns the style image into a short list of 100 numbers, a style vector. A transformer network then paints your photo conditioned on that vector in a single pass, which is why any image can be used as a style and results take seconds instead of minutes.

What does the style strength slider do?

In AI mode it mixes the style vector of the style image with the style vector of your own photo before painting, so lower values give a subtler effect that still looks painted. In quick mode it blends the result with the original photo.

Which style images work best?

Images with a strong, consistent look: paintings with visible brush strokes, mosaics, stained glass, woodcuts, fabrics and abstract patterns. Crop away frames, walls and museum labels. Use the Brush scale setting to make strokes bigger or finer, and only use artworks you are allowed to use, such as your own work or public-domain paintings.

Why is the first run slow?

The browser downloads TensorFlow.js and the two style networks the first time, then caches them. After that, a 512 px image usually takes a few seconds on a computer with a graphics card. Larger working sizes need more graphics memory and time.

What is the quick color and texture mode?

It is a classic image filter, not AI. A Kuwahara filter flattens the photo into painted patches, the colors are matched to the style image in the Lab color space (Reinhard color transfer), and a high-pass texture from the style image is layered on top. It is instant and works offline, but it cannot reproduce brush strokes or shapes like the neural network.

Are my photos uploaded?

No. Both the photo and the style image are processed on your device. Only the model files are downloaded from a public CDN; nothing you add is sent anywhere.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Photo to Oil PaintingTurn a photo into an oil painting with brush size, detail, impasto and canvas texture.Photo to AnimeTurn selfies and landscapes into anime-style art with AI in your browser. Free, no upload.Photo to SketchTurn any photo into a pencil, charcoal or color sketch in your browser and download it.Photo FiltersApply 27 one-click photo filters like Vintage, Noir and Teal & Orange with an intensity slider.Background RemoverRemove image backgrounds automatically with AI.Photo EnhancerOne-click auto enhance: fix exposure, contrast, color cast and sharpness, one photo or a batch.Remove Object from PhotoBrush over unwanted objects, people or text and fill the area with matching background.Make Image TransparentRemove a white or solid-color background and save a transparent PNG, right in your browser.Photo to CartoonTurn photos into cartoons with smooth colors and bold outlines. Free, private, no upload.Add Watermark to PhotoAdd a text or logo watermark to one or many photos at once.Blur Image & Face Pixelate ToolBlur or pixelate faces, plates and backgrounds in a photo.Pixelate Image & Pixel Art ConverterTurn any picture into pixel art with retro palettes and dithering.Add Text to ImageAdd styled text layers with outline and shadow to any photo, then downloadRound Corners ImageGive any picture rounded, circle or squircle corners and save a transparent PNG.Grayscale Image ConverterTurn color photos into black and white with luma, luminance or average methods and sepia.Photo EditorEdit photos online: brightness, contrast, saturation, crop, rotate, flip and filters with undo.Image SharpenerSharpen soft or slightly blurry photos with a real unsharp mask and before/after view.Invert Image ColorsTurn any picture into a color negative, with R/G/B channel toggles and an intensity slider.Screenshot BeautifierPut screenshots on gradient backgrounds with padding, rounded corners, shadow and a browser frame.Image Metadata ViewerSee a photo's EXIF data: camera, lens, exposure, date and GPS location, then strip it in one click.EXIF RemoverRemove EXIF, GPS location and other metadata from JPG, PNG and WEBP photos.Online PaintDraw and paint in your browser: brushes, shapes, fill bucket, text, undo and PNG export.GIF Frame ExtractorSplit an animated GIF into PNG frames with delays, a sprite sheet and ZIP download.Photo Frame MakerPut photos in polaroid, film strip, gallery, rounded or shadow frames with a caption.Duotone GeneratorTurn any photo into a bold two-color duotone image with presets, custom colors and intensity.Glitch Image EffectAdd RGB split, scanlines, slice shifts and noise to a photo for a digital glitch look.Add Date Stamp to PhotoStamp the EXIF or a custom date on photos in a retro orange camera font. Batch and ZIP download.Add Drop Shadow to ImageAdd a drop, long or reflection shadow to PNGs and photos and save a transparent PNG.Add Text to GIFPut captions on animated GIFs with outline, position and frame range, then download.Blend Two ImagesOverlay two photos with opacity, 16 blend modes, fades and free positioning, then download.Blur Photo BackgroundBlur the background of any photo for a portrait-mode look. AI subject detection, no upload.Brick Mosaic GeneratorTurn a photo into a toy-brick stud mosaic with a parts list and printable build guide PDF.Online Document ScannerTurn photos of paper into clean scans: auto edge detection, perspective fix, multi-page PDF.Add Film Grain to PhotoAdd realistic analog film grain, light leaks, fade and vignette to any photo, then download.GIF Speed ChangerSpeed up or slow down an animated GIF, or set each frame's delay, without losing quality.Halftone GeneratorTurn images into mono or CMYK halftone dots and lines; export PNG or SVG.Image Noise RemoverRemove grain and color noise from photos with median, bilateral or non-local means filters.Image Dithering ToolDither photos with Floyd-Steinberg, Atkinson or Bayer in 1-bit, Game Boy, CGA and retro palettes.Add Stickers to PhotoPut emoji and cute stickers on your photos; scale, rotate, flip and layer them, then save PNG.Color Splash EffectKeep one color, or a brushed area, in color and turn the rest of the photo black and white.Old Photo Face RestorerRestore blurry and damaged faces in old photos with AI (GFPGAN) in your browser. Free, no upload.Image Opacity ChangerMake an image semi-transparent with an opacity slider or fade, and save a transparent PNG.Photo to WatercolorTurn a photo into a watercolor painting with soft washes, color bleed, wet edges and paper texture.Product Photo White BackgroundRemove the background and center products on pure white at 2000 x 2000 for marketplaces. Batch.Redact ImageBlack out or pixelate private info in screenshots; burned in, metadata stripped, PNG download.Rubber Stamp MakerDesign round or rectangular stamps with curved text, borders, stars and grunge ink; PNG or SVG.Signature Background RemoverTurn a signature photo or scan into a clean transparent PNG: threshold, ink color, auto-crop.Skin SmoothingSmooth skin in portraits with face-aware retouching that keeps eyes, lips and skin texture sharp.Straighten ImageFix a tilted photo: rotate by any angle with a grid, auto-crop the corners or level the horizon.SVG EditorEdit SVG files visually: move shapes, change colors, text and strokes, add shapes, edit the code.Symmetry Drawing ToolDraw mandalas and kaleidoscope art with radial and mirror symmetry, glow brushes and PNG export.Virtual Background MakerDesign 1920×1080 video call backgrounds with your name, title, logo, blur and branded templates.EXIF EditorEdit photo EXIF and IPTC: date taken, camera, GPS location, copyright and caption, in batch.Face Symmetry TestUpload a face photo to see left-left and right-right mirror composites and a symmetry score.Sports Tactics BoardDraw plays on basketball, soccer, football and hockey diagrams with players, arrows and animated frames.Add Outline to PNGAdd a stroke outline around transparent PNG cutouts: width, color, softness and double borders.Dehaze ImageRemove haze, fog and smog from photos with the dark channel prior. Free, private, in your browser.HDR Photo EffectGive any single photo an HDR look with local tone mapping, detail boost and a strength slider.Low Light Photo EnhancerBrighten dark and night photos with an adaptive tone curve plus noise reduction.Photo StackingStack photos online: star trails (lighten), noise reduction (mean) and remove passers-by (median).Perspective CorrectionDrag 4 corners to straighten skewed photos of signs, screens and whiteboards, then download.Photo Mosaic MakerBuild a big picture out of many small photos by color matching, then export a high-res PNG.Red Eye RemoverClick on red eyes to fix them automatically: adjustable threshold, undo, download the photo.Tilt Shift EffectMake photos look like miniature models with an adjustable tilt-shift focus band and blur.Colorize Black and White PhotoAdd natural color to old black and white photos with AI that runs in your browser. No upload.Draw on ImageAnnotate photos and screenshots with arrows, boxes, text, highlighter and numbered steps.Face Shape DetectorUpload a selfie to find your face shape on-device, with hairstyle and glasses tips.Add Background to Transparent PNGFill the transparent areas of a PNG with a color, gradient or photo, plus padding and shadow.
See all 69 Photo Effects & Editing →