不喜欢广告? 无广告 今天

像素艺术画布及CSS导出

颜色开发人员图像
广告 移除?

Canvas Settings

Changing the grid size clears the canvas.

Palette


导出选项

Size of each pixel in the exported PNG/SVG/CSS output.
广告 移除?

指导

Pixel Art Canvas & CSS Export

像素艺术画布及CSS导出

Paint crisp 8-bit style sprites directly in your browser and export them as pure-CSS box-shadow art, scalable SVG, raster PNG, or portable JSON. The canvas scales from 8×8 up to 64×64, ships with classic palettes (NES, Game Boy, PICO-8, CGA, Commodore 64, Sweetie 16), and gives you paint, eraser, fill, and eyedropper tools with unlimited undo and redo.

如何使用

  1. Pick a grid size from 8×8 to 64×64. Larger grids give more detail but slower paint speed.
  2. Choose a preset palette or drop any hex colour into the colour picker.
  3. Click the paint, eraser, fill, or eyedropper button in the canvas toolbar — or press P, E, F, I.
  4. Click and drag on the canvas to paint. Use Ctrl+ZCtrl+Y to undo and redo.
  5. Pick an export format (CSS box-shadow, SVG, PNG data URI, or JSON), set the pixel size, then copy the code or download the file.

特征

  • Six grid sizes – 8×8, 16×16, 24×24, 32×32, 48×48, and 64×64 for anything from tiny icons to full sprite sheets.
  • Seven preset palettes – NES (54 colours), Game Boy, PICO-8, CGA, Commodore 64, Sweetie 16, and a grayscale ramp.
  • Four drawing tools – paint, eraser, paint bucket (flood fill), and eyedropper with single-key shortcuts.
  • Smooth drag drawing – Bresenham line interpolation keeps strokes continuous even on small screens.
  • Unlimited undo and redo – 60-step history with Ctrl+Z and Ctrl+Y keyboard shortcuts.
  • Four export formats – CSS box-shadow, SVG, PNG data URI, and JSON grid data, each with a live 1:1 preview.
  • Touch support – works on tablets and phones with native touch and pointer events.
  • Transparent cells – empty pixels stay transparent in every export format, not painted white.

常问问题

  1. What is a pixel in digital imaging?

    A pixel (short for picture element) is the smallest addressable unit of a raster image. Each pixel stores color information — typically red, green, and blue channel values between 0 and 255 — and together a grid of pixels forms a complete image.

  2. How does CSS box-shadow render pixel art?

    CSS box-shadow accepts multiple shadow declarations, each with an x offset, y offset, blur radius, spread radius, and color. Setting blur and spread to zero and positioning each shadow on a grid effectively paints individual coloured rectangles from a single 1x1 element — producing a pure-CSS pixel image without any raster data.

  3. What is a limited colour palette and why is it used?

    A limited palette restricts an artwork to a small fixed set of colours, often matching the hardware constraints of retro consoles such as the NES, Game Boy, or Commodore 64. Working within a palette creates visual cohesion, evokes a recognisable era, and forces deliberate colour choices instead of arbitrary ones.

  4. What is the flood fill algorithm?

    Flood fill is a graphics algorithm that starts at a target cell and spreads outward to every neighbouring cell that shares the same colour, replacing each with a new colour. Most paint-bucket tools use a four-directional flood fill (up, down, left, right) implemented with a stack or queue to avoid deep recursion.

  5. Why are raster and vector pixel art different?

    Raster pixel art is stored as a grid of coloured cells (PNG, data URI). Vector pixel art represents each cell as a mathematical shape (SVG or CSS box-shadow) that scales infinitely without losing crispness. Vector output is ideal for web UIs where shape-rendering: crispEdges preserves the blocky look at any zoom level.

想要享受无广告的体验吗? 立即无广告

安装我们的扩展

将 IO 工具添加到您最喜欢的浏览器,以便即时访问和更快地搜索

添加 Chrome 扩展程序 添加 边缘延伸 添加 Firefox 扩展 添加 Opera 扩展

记分板已到达!

记分板 是一种有趣的跟踪您游戏的方式,所有数据都存储在您的浏览器中。更多功能即将推出!

广告 移除?
广告 移除?
广告 移除?

新闻角 包含技术亮点

参与其中

帮助我们继续提供有价值的免费工具

给我买杯咖啡
广告 移除?