Custom Image Generator
Generate custom images with shapes, text, gradients, patterns and uploads. Export as PNG or JPEG. Free browser-based image creator tool.
About
Generating pixel-perfect images for social media banners, placeholder graphics, or UI mockups typically requires heavyweight software. Miscalculated dimensions produce blurred assets on retina displays. Incorrect color spaces cause unexpected shifts when exported. This tool constructs images procedurally on an HTML Canvas at exact pixel dimensions you specify. It supports layered composition of geometric primitives (rectangles, circles, stars with n points, regular k-gons), text with font control, linear and radial gradients defined by stop positions, and uploaded raster images. All rendering occurs client-side. No data leaves your browser.
The coordinate system uses standard screen-space: origin at top-left, x increasing rightward, y increasing downward. Exported files use sRGB color space. JPEG quality maps to the Canvas API compression parameter ranging from 0.0 to 1.0. Note: this tool approximates print-ready output assuming 72 DPI screen resolution. For 300 DPI print, multiply your target dimensions in inches by 300.
Formulas
Star vertices are computed by alternating between an outer radius R and an inner radius r at angular steps. For a star with n points, vertex i sits at angle:
For even indices, the radius used is R (outer). For odd indices, the radius is r (inner). The Cartesian coordinates become:
Where cx, cy are the center coordinates. Regular polygons use the same formula with constant radius R and 2n replaced by n. Gradient color interpolation follows linear RGB blending between color stops at positions t ∈ [0, 1]. JPEG compression quality q maps directly to the Canvas toBlob second argument as a float in [0, 1].
Reference Data
| Preset | Width px | Height px | Aspect Ratio | Common Use |
|---|---|---|---|---|
| Instagram Post | 1080 | 1080 | 1:1 | Feed square post |
| Instagram Story | 1080 | 1920 | 9:16 | Story / Reel cover |
| Facebook Cover | 820 | 312 | 2.63:1 | Page cover photo |
| Twitter Header | 1500 | 500 | 3:1 | Profile banner |
| YouTube Thumbnail | 1280 | 720 | 16:9 | Video thumbnail |
| LinkedIn Banner | 1584 | 396 | 4:1 | Profile background |
| Open Graph | 1200 | 630 | 1.91:1 | Link preview image |
| Favicon | 512 | 512 | 1:1 | Browser tab icon |
| HD 720p | 1280 | 720 | 16:9 | Presentation slide |
| Full HD 1080p | 1920 | 1080 | 16:9 | Desktop wallpaper |
| 4K UHD | 3840 | 2160 | 16:9 | High-res display |
| A4 at 72 DPI | 595 | 842 | 1:1.414 | Screen document |
| A4 at 300 DPI | 2480 | 3508 | 1:1.414 | Print document |
| US Letter 72 DPI | 612 | 792 | 1:1.294 | Screen letter |
| Pinterest Pin | 1000 | 1500 | 2:3 | Optimal pin size |
| App Icon iOS | 1024 | 1024 | 1:1 | App Store icon |
| Email Header | 600 | 200 | 3:1 | Newsletter banner |
| Twitch Banner | 1200 | 480 | 2.5:1 | Channel offline banner |