Transform your images into vibrant Excel art!
Img2Xlsx is a web app that converts images (PNG, JPG, JPEG, BMP) into Excel spreadsheets. Each pixel becomes a cell colored to match, creating a pixel-art effect.
Key Features:
- Grid sizes: 25×25, 50×50, 100×100, or "Free Size"
- Real-time image processing and Excel generation
- Clean, user-friendly interface
-
Conversion to RGB using
Image.open -
Resizing:
- Fixed grids use
Image.resizewithLANCZOSfilter - Free size uses
get_scaled_dimensionsto maintain aspect ratio
- Fixed grids use
- Image converted to array using
np.array(img) - RGB values accessed as
img_array[row, col]
-
Workbook titled
ImageArt -
Cells styled:
- Column width = 2
- Row height = 12
-
RGB → Hex color →
PatternFill
- Uses
secure_filenamefrom Werkzeug - Temp files auto-cleaned from
/tmp/uploadsand/tmp/outputs
/route handles both GET (UI) and POST (conversion)- Error handling and user feedback included
- Upload: Select an image file (PNG, JPG, JPEG, BMP)
- Choose Grid: 25x25, 50x50, 100x100, or Free Size
- Convert: Click Convert to Excel
- Download: Open the
.xlsxfile to view pixel art
I have used Code Sandbox for the initial development before transferring it to github so the previous commits are not visible here.
This project is licensed under the MIT License. See the LICENSE file for details.
Created by Lucifer | 2025
