Pet avatar


Start with fine pixels and light outlines to keep the eyes visible.
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.
Click or drag an image here
PNG, JPEG, WebP · Max 10MB

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


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


Separate the color blocks with a grid to study the outline of a simple object.
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.
Photo2Pixel converts photos into pixel-art-style PNGs locally in the browser with ONNX/WASM processing.
| 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 |
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
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 (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.