A modern and interactive avatar generator that creates custom avatars with letters, colors and predefined palettes.
🔗 GitHub Repository: https://github.com/franciskaster/avatar-creator
- Avatar Generation: Create avatars with individual letters (A-Z) or double letters (AA-ZZ)
- Customizable Colors: Choose custom background and text colors
- Predefined Palettes: 6 ready-to-use color palettes
- Multiple Sizes: 64x64px, 128x128px, 256x256px, 512x512px
- Real-time Preview: See the avatar being generated instantly
- Individual Download: Download avatars as PNG
- Batch Download: Download multiple avatars in a ZIP file
- Responsive Interface: Works perfectly on desktop and mobile
- Open the
index.htmlfile in your browser - Type the avatar text (A-Z or AA-ZZ)
- Choose colors using the selectors or predefined palettes
- Select the desired size
- Click "Generate Avatar" to add to the list
- Download individually or in batch as ZIP
- Name initials: A, B, C, etc.
- Double initials: AA, BB, CC, etc.
- Team codes: TM, DEV, UX, etc.
- Brands: LG, HP, etc.
- HTML5: Semantic structure
- CSS3: Modern design with gradients and animations
- JavaScript ES6+: Interactive logic
- SVG: Vector avatar generation
- JSZip: ZIP file creation
- Canvas API: SVG to PNG conversion
avatar-creator/
├── index.html # Main page
├── styles.css # CSS styles
├── script.js # JavaScript logic
└── README.md # Documentation
- Orange: #f39c12 with white text
- Blue: #3498db with white text
- Red: #e74c3c with white text
- Green: #2ecc71 with white text
- Purple: #9b59b6 with white text
- Gray: #34495e with white text
To add new palettes, edit the index.html file in the .palette-grid section:
<div class="palette" data-bg="#your-color" data-text="#text-color">
<div class="palette-color" style="background: #your-color;"></div>
<span>Palette Name</span>
</div>To add new sizes, edit the index.html file in the #size-select section:
<option value="1024">1024x1024px</option>- ✅ Chrome 60+
- ✅ Firefox 55+
- ✅ Safari 12+
- ✅ Edge 79+
- ✅ Mobile browsers
The project is fully responsive and works perfectly on:
- Desktop (1200px+)
- Tablet (768px - 1199px)
- Mobile (up to 767px)
To deploy the project:
- GitHub Pages: Upload the files to a repository and enable GitHub Pages
- Netlify: Drag the project folder to Netlify
- Vercel: Connect the repository to Vercel
- Local Server: Open
index.htmldirectly in the browser
Contributions are welcome! Feel free to:
- Fork the project
- Create a branch for your feature
- Commit your changes
- Open a Pull Request
This project is under the MIT license. See the LICENSE file for more details.
- Google Fonts (Inter)
- JSZip library for ZIP file creation
- Developer community for inspiration
Developed with ❤️ to create amazing avatars!