Photo2Pixel

Drop in a photo or try a sample. Adjust the pixel size, compare it with the original, and download your pixel art as a PNG.

Try a sample photo

Click or drag an image here

PNG, JPEG, WebP · Max 10MB
Style Mode
Pixel Size
Edge Density
Ready
0 x 0
Pixel Art
Result will appear here
Upload an image

Photo to pixel art examples

Pet avatar

Tabby cat
Original
Tabby cat in enhance edge style
Pixel art

Start with fine pixels and light outlines to keep the eyes visible.

Landscape thumbnail

Teton peaks above the Snake River
Original
Teton peaks above the Snake River in raw pixel style
Pixel art

Use a small block size to preserve the bend of the river and the mountain skyline.

Gridded object study

Espresso in a red cup and saucer
Original
Espresso in a red cup and saucer in isolate pixel style
Pixel art

Separate the color blocks with a grid to study the outline of a simple object.

Photo credits

Cat by Stefan van der Walt and coffee by Rachel Michetti (CC0). The Tetons – Snake River by Ansel Adams (National Archives, public domain). All three photos are cropped for these comparisons.

What does Photo2Pixel do?

Photo2Pixel converts photos into pixel-art-style PNGs locally in the browser with ONNX/WASM processing.

  • Supports PNG, JPEG, and WebP uploads up to 10MB.
  • Offers Enhance Edge, Isolate Pixel, and Raw Pixel style modes.
  • Exports the generated pixel-art preview as a PNG without sending the source image to a server.
Topic Direct answer Source
Key fact Pixel size controls how chunky the result looks; edge density only affects Enhance Edge mode, where lower thresholds preserve more outline detail. HTML Canvas API
Processing model Runs locally in the browser; no production Node server receives the input. Browser JavaScript

How to get a recognizable pixel art avatar

Start with a close crop around your subject. For a pet avatar, keep both eyes inside the frame and leave a little space around the ears. Try Enhance Edge with Extra Small pixels to keep fine details visible.

Switch to the original to check the eyes and outline. If the fur looks crowded with dark lines, lower Edge Density. If the face disappears into a few large blocks, choose a smaller pixel size.

https://github.com/Jzou44/photo2pixel

Photo2Pixel demo showing a landscape photo transformed into blocky pixel art

Convert and export your own photo

  1. Choose a sample to try its preset, or drop a PNG, JPEG or WebP file up to 10 MB into the tool. Photo2Pixel processes the image in your browser.
  2. For a landscape, try Raw Pixel to simplify the sky and water. For a gridded object study, try Isolate Pixel. Changing a setting updates the preview.
  3. Use View original to compare the result. Choose Download to save the PNG. The dimensions beside that button tell you how large the exported image will be.

What does Pixel Size change?

Pixel Size changes the width of the color blocks inside the picture. Extra Small uses six-pixel blocks. Medium uses fifteen. A larger block gives a simpler silhouette and removes more small details.

Large photos are scaled proportionally to about 2.2 megapixels before conversion. If your avatar needs an exact width or height, resize the exported PNG to those dimensions.

MCP integration

MCP (Model Context Protocol) lets AI agents and apps discover and run Coding.Tools utilities for repeatable conversions, formatting, hashing, and generation workflows.

MCP tool name: photo2pixel

MCP endpoint: https://coding.tools/mcp

Call tools/list first. Each tool entry includes inputSchema, outputSchema, and examples so an AI agent or client can build valid arguments without guessing.

For tools/call, read result.content[0].text for the display value and result.structuredContent for machine parsing. Tool-level failures return isError: true; protocol failures return a JSON-RPC error.

Example tools/call request:

curl -s https://coding.tools/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "MCP-Protocol-Version: 2025-06-18" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"photo2pixel","arguments":{}}}'

This image tool is browser-only in MCP. tools/call returns isError: true plus a resource_link to the web UI instead of processing local image bytes on the server.

Most text and data tools accept an input string plus optional options. Browser-only image tools are listed for discovery and return a web UI link when they need browser image APIs.