A modern, feature-rich pixel art editor built with vanilla JavaScript, HTML, and CSS. Create retro-style pixel art directly in your browser with an intuitive interface and powerful drawing tools.
- Draw - Freehand pixel drawing
- Erase - Remove pixels (also via right-click)
- Fill - Bucket fill with flood algorithm
- Line - Draw straight lines (Bresenham's algorithm)
- Rectangle - Draw rectangle outlines
- Circle - Draw circle outlines (Midpoint algorithm)
- Color picker for unlimited colors
- 24 preset color palette
- Quick color selection
- Visual active color indicator
- Grid Sizes: 16x16, 32x32, 48x48
- Pixel Sizes: 6px, 8px, 10px, 12px
- Responsive canvas that adapts to settings
- Download PNG - Export your art as PNG image
- Gallery - Save to browser localStorage
- High-quality export without grid lines
git clone https://github.com/hsr88/pixel-art-creator.git
cd pixel-art-creatorDownload the ZIP file from the releases page and extract it.
- Open
index.htmlin your web browser - Select a tool from the toolbar
- Choose your colors from the palette or color picker
- Click and drag on the canvas to draw
- Use the settings to adjust grid and pixel size
- Export your artwork when finished!
- Right Click - Quick erase
- Mouse Drag - Continuous drawing
pixel-art-creator/
โ
โโโ index.html # Main HTML file
โโโ style.css # All styling and animations
โโโ script.js # Application logic
โโโ README.md # This file
The app includes a carefully curated palette of 24 colors:
- Grayscale (Black, White, Grays)
- Primary colors (Red, Green, Blue, Yellow, etc.)
- Extended palette (Orange, Pink, Brown, etc.)
- Special colors (Purple gradients, Cyan tones)
Edit the colorPalette array in script.js:
const colorPalette = [
'#000000', '#FFFFFF', // Add your colors here
// ...
];Modify the options in index.html:
<select id="gridSize">
<option value="16">16 x 16</option>
<option value="64">64 x 64</option> <!-- Add new size -->
</select>- โ Chrome (recommended)
- โ Firefox
- โ Safari
- โ Edge
โ ๏ธ IE11 (limited support)
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Add undo/redo functionality
- Implement layers system
- Add more drawing tools (spray, gradient)
- Create animation frames support
- Add export to different formats (SVG, GIF)
- Implement custom brush sizes
- Add keyboard shortcuts panel
This project is licensed under the MIT License - see the LICENSE file for details.
hsr88
- GitHub: @hsr88
- Pixel art font: Press Start 2P
- Inspired by classic pixel art editors
- Built with โค๏ธ for the pixel art community
- Undo/Redo system
- Layers support
- Animation frames
- Import existing images
- Custom canvas backgrounds
- Grid toggle
- Symmetry drawing mode
- Color mixer
- Eyedropper tool
- Touch device support
- Fast Drawing: Click and drag to draw continuously
- Quick Erase: Use right-click instead of switching to eraser
- Perfect Shapes: Use Line, Rectangle, and Circle tools for clean geometry
- Color Workflow: Use the preset palette for quick access to common colors
- Export Quality: Exported PNGs are clean without grid lines
- None at the moment! Report issues on GitHub.
While the app works on mobile devices, it's optimized for desktop use with a mouse for the best experience.
Made with pixel-perfect precision ๐ฎโจ
Star โญ this repository if you find it useful!