A modern, responsive currency converter built with HTML, Tailwind CSS, and JavaScript. It instantly fetches real-time exchange rates for 150+ global currencies, featuring a beautiful gradient glassmorphism UI with smooth animations, interactive currency swapping, popular currency pairs, and a seamless user experience.
- ๐ 150+ Global Currencies: Support for currencies conversion between all major and many minor world currencies.
- โก Real-Time Exchange Rates: Live rates powered by ExchangeRate-API
- ๐ Quick Currency Swap: One-click button to instantly swap from/to currencies
- โญ Popular Currency Pairs: Pre-configured popular conversions (USD/EUR, USD/JPY, INR/USD, EUR/JPY)
- ๐จ Modern UI: Elegant gradient background with glassmorphism effects, smooth animations, and responsive design
- ๐ฑ Fully Responsive: Works beautifully on desktop, tablet, and mobile devices
- โก Fast & Lightweight: No frameworks or build tools requiredโjust open and use!
- ๐ Loading States: Animated loading spinner and overlay during API calls.
โ ๏ธ Error Handling: Friendly error popups with retry options when something goes wrong.- ๐ Rate Information: Detailed exchange rate information with last updated timestamps
- ๐ฏ User-Friendly: Intuitive interface with clear labels and smooth interactions
- โฟ Accessibility: Proper focus states and keyboard navigation support
- Select Currencies: Choose from 150+ currencies using the dropdown menus with flag emojis
- Enter Amount: Type any amount in the input field (defaults to 1)
- Convert: Click the "Convert" button or press Enter to get real-time exchange rates
- Swap Currencies: Click the exchange button (
โ๏ธ ) to quickly swap from/to currencies - View Popular Pairs: See pre-configured popular currency conversions at the bottom
- Invalid or empty amounts prompt a friendly error message
- API/network errors are shown as dismissible popups
- HTML5: Semantic markup with modern structure
- Tailwind CSS: Utility-first CSS framework via CDN with custom animations
- TypeScript: Type-safe JavaScript for robust code
- Font Awesome: Icon library via CDN for beautiful UI icons
- Exchange Rate API: Real-time currency exchange rate data
- Google Fonts: Inter font family for modern typography
- Git โ Version control
- GitHub โ Code hosting and collaboration
- 150+ Currencies: Comprehensive global currency support
- Real-Time API: Live exchange rates from Exchange Rate API
- Custom Animations: Smooth fade-in, slide-up, and pulse animations
- Glassmorphism UI: Modern glass-like design with gradients
- Ripple Effects: Interactive button animations
- Custom Scrollbars: Styled scrollbars for better UX
- Clone the repository:
git clone https://github.com/pvm-harshavardhan/currency-converter.git
- Change to the project directory:
cd currency-converter - Update the API key:
- Open
script.tsand replace the placeholder API key with your own from ExchangeRate-API.
- Open
- Open the app:
- Open
index.htmlin your web browser.
- Open
- Start converting currencies! ๐ฑ
No build step or server required!
currency-converter/
โโโ ๐ index.html # Main HTML file with Tailwind CDN and custom config
โโโ โก script.ts # TypeScript logic for currency conversion and API calls
โโโ โก script.js # Compiled JavaScript output
โโโ ๐จ style.css # Custom CSS styles and animations
โโโ ๐ผ๏ธ favLogo.png # App favicon and logo
โโโ ๐ README.md # Project documentation
The app uses the Exchange Rate API for real-time currency data:
- API Key: Configured in
script.ts(top of file) - Base URL:
https://v6.exchangerate-api.com/v6 - Rate Limits: Check Exchange Rate API documentation for current limits
- Free Tier: Available for basic usage
๐ Want to use a different quote API provider?
You can easily switch to another API by updating the endpoint and API key in script.ts.
Just make sure the new API returns a quote and author in its response, and adjust the code if the response format is different.
- โ Chrome (recommended)
- โ Firefox
- โ Safari
- โ Edge
โ ๏ธ Internet Explorer (limited support)
- Check your internet connection
- Ensure Exchange Rate API key is valid and not rate-limited
- Check browser console for API errors
- Verify the API endpoint is accessible
- Make sure Tailwind CSS CDN is accessible
- Clear browser cache
- Check if Font Awesome CDN is loading properly
- The app is fully responsive
- Touch controls work on mobile devices
- Currency dropdowns are optimized for mobile interaction
- Add screenshots or GIFs to highlight features and UI
- Update colors and styles in Tailwind config or HTML classes
- Modify the
currenciesarray inscript.tsto add/remove currencies
Deploy your Currency Converter easily using GitHub Pages, Netlify, or Vercel for free.
- Push your code to GitHub
- Go to repository Settings > Pages
- Select source branch (usually
main) - Your app will be available at
https://username.github.io/repository-name
Contributions are welcome!
Feel free to open issues or submit pull requests to improve the app.
- Add historical exchange rate charts
- Implement currency conversion history
- Add offline mode with cached rates
- Include more currency information (symbols, decimal places)
- Add dark/light theme toggle
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name - @pvm_harsha
Project Link: Currency Converter Web Project
Made with โค๏ธ by P VM Harsha Vardhan
Happy converting! ๐ฑ๐โจ
