Convert CSV to Excel When Data is in One Column
Fix common issues where CSV data appears as a single column in Excel due to delimiter problems.
Open Excel and start Text Import Wizard
Go to Data โ Get Data โ From Text/CSV, or use Data โ Text to Columns for existing data
Select "Delimited" option
Choose delimited instead of fixed width to specify separator characters
Choose the correct delimiter
Try comma, semicolon, tab, or custom delimiter. Preview shows how data will be separated
Set text qualifier if needed
If data contains delimiter within text, set text qualifier to " (double quote)
Preserve Leading Zeros When Converting CSV to Excel
Prevent Excel from automatically removing leading zeros from numbers like ZIP codes and phone numbers.
Use Text Import Wizard
Import via Data โ Get Data โ From Text/CSV instead of double-clicking the file
Set column data format to "Text"
In the import preview, select columns with leading zeros and set format to "Text"
Alternative: Add apostrophe prefix
In CSV file, prefix numbers with apostrophe: '01234 becomes 01234 in Excel
How to Properly Choose Delimiter When Converting CSV
Learn to identify and select the correct delimiter for clean data separation.
Examine the raw CSV file
Open CSV in text editor (Notepad, VS Code) to see actual separators used
Identify common delimiters
Look for patterns between data fields
Check for delimiter conflicts
Ensure delimiter doesn't appear within data fields
Test with preview
Use import preview to verify correct column separation
Convert CSV to JSON for Web Applications
Transform tabular CSV data into JSON format for API consumption and web development.
Choose conversion method
Online tool (Convertio, JSON-CSV), programming script (Python, JavaScript), or specialized software
Prepare CSV headers
Ensure first row contains clean column names (these become JSON keys)
Handle data types
Specify if values should be strings, numbers, or booleans in JSON output
Example Python script
Fix Encoding Errors When Opening CSV
Resolve character encoding issues that cause gibberish text and special character problems.
Identify encoding issue
Look for symptoms: strange characters (ร, รข, ยฟ), question marks, boxes
Try different encodings
Common encodings to test: UTF-8, UTF-8 BOM, Windows-1252, ISO-8859-1
Use proper import settings
In Excel: Data โ Get Data โ specify encoding. In Notepad++: Encoding menu
Convert and save with UTF-8
Once opened correctly, save as UTF-8 to prevent future issues
Extract Table from PDF and Convert to CSV
Advanced technique to extract tabular data from PDF documents and convert to CSV format.
Assess PDF table structure
Determine if table has clear borders, consistent formatting, and good text quality
Choose extraction tool
Options: Tabula (free), Adobe Acrobat, online tools (SmallPDF, ILovePDF), or Python libraries
Extract using Tabula (recommended)
Upload PDF โ Select table area โ Choose output format (CSV) โ Download
Clean extracted data
Remove extra spaces, fix merged cells, verify column alignment
Convert CSV to SQL INSERT Scripts
Generate SQL INSERT statements from CSV data for database population and migration.
Prepare CSV structure
Ensure headers match target database column names exactly
Choose conversion method
Online tools (CSV to SQL converter), database tools, or custom scripts
Handle data types properly
Quote text values, format dates, handle NULL values