Excel to JSON Converter is a simple, minimalistic web application that allows users to upload Excel files (.xls
or .xlsx
) and convert them to JSON format. All processing is done locally on the user's device without any server-side overhead, ensuring fast and secure file conversion.
This project is designed with a focus on minimalism, using React and Tailwind CSS to deliver a clean and professional user interface. It provides users with a straightforward and efficient way to convert their Excel files into JSON and download the converted files directly.
You can access the live version of this app here.
- Upload
.xls
or.xlsx
Excel files - Converts the Excel data to JSON format
- Download the converted JSON file
- Fully client-side processing
- Clean and minimalistic design
- React: JavaScript library for building user interfaces
- Tailwind CSS: Utility-first CSS framework for responsive design
- XLSX.js: JavaScript library for parsing Excel files
- FileSaver.js: JavaScript library for saving files client-side
- GitHub Pages: Hosting service for static websites
-
Open the Web App: Visit the live version of the app at: Excel to JSON Converter.
-
Upload an Excel File:
- Click the "Choose File" button in the center of the page.
- Select a
.xls
or.xlsx
file from your device.
-
Convert to JSON:
- Once you select a file, the "Convert and Download JSON" button will become active.
- Click the button to convert your Excel file into JSON format.
-
Download the JSON File:
- After conversion, the JSON file will automatically be downloaded to your device.
If you'd like to run this project locally or contribute, follow these steps:
-
Clone the repository:
git clone https://github.com/ayeshrodz/excel-to-json.git
-
Navigate to the project directory:
cd excel-to-json
-
Install the dependencies:
npm install
-
Install Tailwind CSS and the required PostCSS and Autoprefixer plugins:
npm install -D tailwindcss postcss autoprefixer
-
Create the Tailwind CSS configuration file:
npx tailwindcss init
-
Update the Tailwind configuration in the
tailwind.config.js
file:module.exports = { content: ["./src/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, plugins: [], };
-
Include Tailwind in your CSS:
Replace the contents of the
src/index.css
file with:@tailwind base; @tailwind components; @tailwind utilities;
-
Run the development server:
npm start
The app will be available at
http://localhost:3000
.
To deploy the app to GitHub Pages:
-
Install the
gh-pages
package:npm install gh-pages --save-dev
-
Update the
package.json
file:-
Add the
homepage
field:"homepage": "https://your-username.github.io/your-repo-name",
-
Add the
predeploy
anddeploy
scripts:"scripts": { "start": "react-scripts start", "build": "react-scripts build", "predeploy": "npm run build", "deploy": "gh-pages -d build" }
-
-
Build the project:
npm run build
-
Deploy to GitHub Pages:
npm run deploy
The app will be available at
https://your-username.github.io/your-repo-name
.
Contributions are welcome! If you'd like to contribute to the project, please fork the repository and use a feature branch. Pull requests are warmly welcome.
- Fork the repo.
- Create your feature branch (
git checkout -b feature/my-feature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/my-feature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.