
The CSV2JSON Converter is a web application designed to convert CSV (Comma Separated Values) files to JSON (JavaScript Object Notation) format. This tool is useful for developers, data analysts, and anyone who needs to work with data in both CSV and JSON formats. The application provides a simple and intuitive interface for uploading CSV files, selecting delimiter options, and downloading the converted JSON data.
The CSV2JSON Converter is built using modern web technologies, including React, Vite, and Tailwind CSS, ensuring a fast, responsive, and user-friendly experience.
- CSV to JSON Conversion: Convert CSV files to JSON format with ease
- Delimiter Selection: Choose from various delimiter options, including auto-detection
- File Upload: Upload CSV files directly or paste CSV data into the application
- JSON Output: Display and download converted JSON data
- Sample Data: View sample CSV data to get started
- Drop Zone: Easily upload CSV files or click to browse
- Auto-Detect Settings: Select delimiter and auto-detect settings for accurate conversion
graph TD;
src-->components;
src-->utils;
components-->CsvInput;
components-->JsonOutput;
components-->DropZone;
components-->AutoDetectSettings;
components-->SampleData;
utils-->useCsvJson;
src-->App;
src-->main.jsx;
To run the CSV2JSON Converter locally:
- Clone the repository:
git clone https://github.com/ebhay/CSV2JSON.git
- Install dependencies:
npm install
- Start the application:
npm run dev
- Open your web browser and navigate to
http://localhost:5173
The application uses the following configuration files:
vite.config.js
: Vite build tool configurationeslint.config.js
: ESLint configuration for JavaScript linting.gitignore
: Git ignore file for ignoring specific files and directories
The repository uses GitHub Actions for automated workflows. The workflow files are located in the .github/workflows
directory.
The application code is organized into the following directories:
src
: Source code directorycomponents
: React component directoryutils
: Utility function directoryApp.jsx
: Main application componentmain.jsx
: Main entry point of the application