Windows application · CSV guide · 2.0.2

Work with CSV files in the Windows app

Inspect rows, filter a customer delivery, rearrange columns, save an Excel workbook, and compare two file formats. Follow the complete CSV workflow with real application screenshots and downloadable examples.

This guide is for the CodePrettify Windows application. CSV file handling and the native Save As and Compare Table Schema workflows shown here are not available in the browser extension.

  • CSV processing stays on your device
  • Source column order and leading zeros preserved
  • CSV, JSON, HTML and Excel exports
CodePrettify Windows application showing the sample CSV table in original column order
The Windows app opens CSV as a table, keeping headers and values in the source file’s order. Select any screenshot in this guide to view it at full size.
Try the same data

Two small files, one changed format

Both files contain twelve fictional business records. They use semicolons, UTF-8 text, Norwegian place names, and identifiers such as 0001. These are the exact samples used by the screenshot script, so you can reproduce each step.

Earlier delivery · 6 columns

csv-guide-before.csv

The original format starts with ID and Name and ends with Email.

Download the earlier CSV
ID;Name;City;Group;Balance;Email
0001;Aster Studio;Oslo;Retail;125.50;[email protected]
Main file · 8 columns

csv-guide-main.csv

The updated delivery inserts WL after Name and appends OL at the end.

Download the main CSV
ID;Name;WL;City;Group;Balance;Email;OL
0001;Aster Studio;No;Oslo;Retail;125.50;[email protected];No
Open and inspect

Switch between Table View and Raw

Open csv-guide-main.csv with File > Open in the Windows app. With CSV formatting enabled, it opens in Table View. The first header is ID and the last is OL; opening a table does not alphabetize its columns.

  1. Check the headers and values together

    Scroll horizontally to inspect wider files. Empty cells keep their position, so every value stays under the matching header. Leading zeros in IDs remain visible.

  2. Use Raw to inspect the actual CSV text

    Close the table with its X to return to Raw. This shows the plain source, including delimiters and quoting. CSV uses a Table View / Raw switch; it has no separate prettified CSV representation.

  3. Return to the table

    Choose Table View to reopen the grid. Your view choice is remembered. If CSV initially opens as text, choose Table View and check the CSV default view in Settings.

Windows application Raw view showing semicolon-separated CSV source and the Table View switch
Raw is useful for checking delimiters, empty fields, and exact source order before an export.
Correct automatic detection

Choose how a CSV file is opened

If a delivery opens as one wide column, shows incorrect characters, or uses its first record as a heading, choose CSV opening options… in the table toolbar. The same command is available under Tools while viewing Raw or a large CSV file.

  1. Choose the delimiter

    Keep Auto-detect or choose comma, semicolon, tab, pipe, or a custom single character. A quote or line break cannot be a delimiter.

  2. Check the encoding and header row

    Encoding can be detected automatically or set to UTF-8, UTF-16 LE/BE, Windows-1252, or ISO 8859-1. Changing it rereads the file bytes. Clear First row contains headers for headerless data; the table uses names such as column1 and retains the first data record.

  3. Apply and inspect

    Apply and reopen resets this table's filters, layout, and selection. It leaves the source file unchanged. The chosen interpretation is used when refreshing the open tab, saving table data, and comparing its schema. These opening choices last for the open tab; they are not a saved import profile.

Windows CSV opening options dialog with delimiter, encoding and first-row header choices
Opening options correct the interpretation of a CSV file without rewriting the incoming delivery.

Encoding is available for files read from disk. Pasted text already has an encoding interpretation, so its encoding selector is disabled. CSV exports from headerless data remain headerless; JSON, HTML and Excel use the generated column labels.

Find the records you need

Search, filters, counters, and selection

The table search is always available. Turn on Advanced for column filters, source column indexes, and summaries. Hover a summary to read its unique and empty counts. Advanced defaults to off and remembers your last choice for the next table.

CSV Advanced mode in the Windows app with zero-based Col labels, column filters and unique counters
Advanced puts a normal-weight Col: 0 above ID, Col: 1 above Name, and so on. Column names remain bold.
Windows application CSV Advanced controls, column indexes and summaries in the dark theme
The same Advanced controls are available in the app’s dark theme. Summaries describe the first twelve columns.
  1. Narrow the table with a column filter

    Enter Retail in the Group filter. Six sample rows remain. Table search and column filters combine, so adding Oslo to the table search narrows the result to two rows.

  2. Sort when presentation order matters

    Click a column heading to sort the rows. Save As lets you choose current sorting or original row order when sorting has changed. Sorting the table does not rewrite the source file.

  3. Select the rows to keep

    Check individual rows, or use the header checkbox to select the rows matching the current filter. Selection stays with its records when you sort or filter again.

  4. Review active filters before saving

    Turning Advanced off hides its controls but retains entered filters. Clear the column filters and table search to restore every row, or deliberately choose All rows in Save As.

Three checked CSV records in the Windows application Table View before applying a filter
Three records are selected: Aster Studio, Birch Works, and Cedar Lab.
Windows CSV table filtered to Retail while retaining a previously selected Partner record
The Retail filter hides Birch Works, but its checkbox selection is retained. Selected-row exports still include that record.

Keep track of active filters

Hiding Advanced keeps your column filters active. The toolbar always shows the number of active filters, counting the global search and each nonempty column filter. Clear all filters clears them together and restores all rows, including when a filtered column itself is hidden.

For the sample, filter Group to Retail and turn Advanced off. Six records still match, and the active-filter indicator remains visible. Clearing the filters restores all twelve records.

Windows CSV table with Advanced hidden and an active-filter count and Clear all filters button
The active-filter indicator remains visible when Advanced is off.
Arrange a delivery

Drag columns, then save the new order

Drag a column heading to a new position. The insertion marker shows where it will land; move near an edge to scroll across a wide table. Release to move the header and all its cells together, or press Esc to cancel. Keyboard users can focus a heading and use Alt+Left or Alt+Right.

In the sample, move Name before ID. Advanced still labels Name Col: 1, because that number identifies its original position in the file. To write the rearranged delivery, choose Current table order in Save As. The order choice is disabled until columns actually differ from the source order.

Column drag in the Windows CSV table with an insertion marker before the ID heading
Dragging Name before ID shows the destination before you release the pointer.
Windows CSV table after moving Name ahead of ID while retaining the original column index labels
Name and its values now come first. The original source file remains available in Raw.
Arrange the working view

Hide, resize, and pin columns

Open Columns to choose which fields appear. Uncheck Email in the sample to make more room. Hiding a column keeps its data and any filter active; at least one column stays visible. Reset columns restores source order, default widths, all columns, and no pin.

Drag the right edge of a header to resize it. You can also enter a pixel width in Columns, or focus a header's resize handle and use Left/Right arrows. Column widths range from 80 to 1,000 pixels.

Choose Pin beside ID to keep it at the left while scrolling horizontally. One data column can be pinned at a time. Pinning moves it to the front of the working order; Unpin returns it to its previous position. Layout choices remain while switching between Table View and Raw in the same tab, and reset when the document is reopened.

Windows table Columns panel with visibility checkboxes, editable widths and a pinned ID column
Email is hidden, Name and City are wider, and ID is pinned. These are view controls in the Windows application.
Windows CSV table scrolled horizontally with the ID column fixed on the left
ID remains next to the row numbers while the other fields scroll.
Move a useful slice into another tool

Select cells, columns, or rows and copy to Excel

Click a cell, then Shift-click another cell to select a rectangle. Drag across cells to select directly, including scrolling near the table edges. Arrow keys move the active end of the selection; hold Shift to extend it. Escape clears the cell range.

Ctrl-click a column heading selects that column across all matching rows, including rows outside the rendered viewport. Click a row number and Shift-click another for a contiguous rectangle of complete rows. Alternatively, check a row checkbox and Shift-click another checkbox to select a contiguous set for both copying and Save As. Row ranges follow the current sorting and filtering.

Press Ctrl+C with the table focused, or choose Copy selection. Include headers in copy adds the column names as the first row of the copied text and remembers the choice for the next table. It affects both Copy selection and Ctrl+C; toggling it does not change the table display. Copied values form a tab-separated rectangle; tabs, quotes, and line breaks inside cells are quoted. Hidden columns and filtered-out rows are excluded from copying. Checked rows hidden by a filter are still available under Save As > Selected rows.

Windows CSV table showing a rectangular cell selection and the Include headers in copy option
A three-row rectangle is ready to copy. The current visible column order defines the rectangle.
Windows CSV table with the entire Name column selected for copying
Ctrl-click a heading to select its entire filtered column, including off-screen records.

Cell and column ranges are clipboard selections. Save As > Selected rows uses the row checkboxes. For identifiers that must retain leading zeros in Excel, use the .xlsx export: its CSV values are explicitly stored as text. Ordinary clipboard pastes may be interpreted by the receiving application. Double-click a long cell, or focus it and press Enter, to expand its full value.

One Save As workflow

Save CSV, JSON, HTML, or an Excel workbook

While Table View is active, its Save as… button, File > Save As, and Ctrl+Shift+S open the same table-specific dialog in the Windows app. Choose the output format, row scope, and ordering, review the counts, then save to a destination.

FormatUse it forWhat to expect
CSVA filtered delivery, selected records, or a new column order.Preserves source delimiter, encoding, headers, empty values, quoting, and leading zeros.
JSONRows as objects for a script or another data tool.CSV values remain strings, including IDs such as 0001.
HTML TableA standalone table to open in a browser or share as a report.Writes an .html file with the chosen rows and ordering.
Excel workbook (.xlsx)A workbook for Excel or another spreadsheet application.Frozen header row and column filters. CSV cells remain text to preserve identifiers and date-like values.
Original file copyAn exact copy of the incoming delivery.Preserves every source byte. Table filters, selections, and order changes do not apply.

Choose which rows leave the table

All rows includes the complete table. Filtered rows uses both table search and column filters. Selected rows includes every checked row, even those currently hidden by filters; the dialog tells you how many are hidden.

The default is Selected when rows are checked, otherwise Filtered when filters are active, otherwise All. Column order and row order are separate choices. In the screenshot below, saving the three selected records includes Birch Works even though the Retail filter hides it.

Windows table Save As dialog choosing CSV with selected rows, changed column order and hidden selection count
CSV: save the selection with the new column order, and review the source delimiter and encoding.
Windows table Save As dialog choosing JSON and filtered rows from the CSV sample
JSON: choose Filtered rows to export the six Retail records, regardless of the checkbox selection.
Windows table Save As dialog choosing HTML Table and all rows for a standalone report
HTML Table: All rows includes all twelve records, including the rows hidden by the current filter.
Windows table Save As dialog choosing Excel workbook xlsx with row and column order options
Excel workbook: produces a real .xlsx file. CSV text is written as text cells, never as formulas.

Choose All columns or Visible columns

The Columns choice explicitly controls the export scope. All columns is the default and includes hidden fields. Visible columns saves just the fields shown in the table. This works for CSV, JSON, HTML Table, and .xlsx, independently of which rows you choose. Current or Original column order then determines the order within that set.

After hiding Email in the sample, Visible columns saves seven fields; All columns saves eight. Check the row-by-column summary before choosing the destination. Column widths and pin styling are display settings and are not written into CSV data.

Windows Save table as dialog with Visible columns selected and a seven-column output summary
The explicit column scope prevents hiding a field from silently removing it from an export.

Keep the original or open the result

Original file copy disables table transformations. For the other formats, Save As creates a separate output while the open source tab keeps its original file. Enable Open saved file if you want the result to open in its associated application after saving.

Table Save As offers data formats. Code-image capture, Formatted, and Minified are not offered in this dialog. If you need the exact incoming CSV, choose Original file copy rather than exporting a view.

Windows table Save As dialog with Original file copy selected and transformation choices disabled
Original file copy makes the scope explicit: an unchanged copy of the source, including its encoding and byte-order mark.
Understand a changed file format

Compare a main file with another table schema

Choose Tools > Compare Table Schema in the Windows app. The active file is preselected as Main file. Under Compare with, choose the earlier delivery. The result describes the main file relative to that other file.

Windows Compare Table Schema dialog identifying Main file and Compare with using the two CSV samples
Use csv-guide-main.csv as Main file and csv-guide-before.csv under Compare with.
Windows CSV schema comparison listing added WL and OL columns and shifted source positions
The main file has two added columns: WL at position 2 and OL at position 7. Positions start at zero.
ChangeMeaning relative to the main file
Added · greenThe column exists only in the main file. WL and OL are green in this example.
Removed · redThe compared file contains the column, but the main file is missing it.
Shifted · blueIts index changed because other columns were inserted or removed. City shifts from 2 to 3 when WL is inserted.
Reordered or type changedThe relative order of shared columns changed, or the types observed in the data differ.

Inspect positions, examples, and the preview

The Columns view lists names, main and compared positions, observed types, and example values. Use Find column to locate a field and Changes only to hide unchanged fields. Data preview shows the first ten rows from each file in their source column order, making inserted fields easy to inspect.

Swap files changes which file is the main file. With the earlier delivery as main, WL and OL become red Removed columns. This is a directional comparison; the labels above the files and the added/removed explanation show how to read it.

Windows schema comparison Changes only view showing just the two added CSV columns WL and OL
Changes only isolates WL and OL. Columns whose positions simply shifted are omitted from this filtered view.
Windows schema comparison data preview showing new WL values alongside the compared CSV table
Data preview shows actual sample values around the inserted column. Each file retains its own order.
Windows schema comparison after swapping files with WL and OL now marked Removed in red
After Swap files, the earlier delivery is the main file. Its missing WL and OL columns are shown in red.

Reproduce the schema change

Compare the two downloads and look for these results. You can use the same workflow for compatible JSON arrays and repeating XML/RSS tables in the Windows app.

  • Two added columns, zero removed columns.
  • WL at main position 2 and OL at main position 7.
  • City shifts from compared position 2 to main position 3.
  • Swap files reverses the result to two removed columns.
  • Preview shows No and Yes values in the new fields.
  • No shared column was deliberately reordered.

Schema comparison matches column names exactly. A renamed column appears as an addition and a removal. Types describe values observed in the files; CSV values are text or empty. This view does not match records by ID or report every changed cell. Its examples and preview help explain the structure, rather than verify record-level equality.

Compare the exact text

When to use Compare File Content

Use Tools > Compare File Content when you need to review lines in the actual files. It shows compact rows with added and removed colors immediately, synchronized panes, difference navigation, and a separate summary area.

Inserting a CSV column changes the text of every affected row, so a content comparison can show many changed lines for a small format change. Use Compare Table Schema to answer which fields were added and where. Use Compare File Content to examine the literal line differences.

Windows Compare File Content showing compact red and green CSV lines with a separate bottom summary
The same twelve records generate line changes because WL and OL add fields to each CSV row. Text comparison uses its own left/right direction.
Practical limits

Large CSV files and export details

Files of 64 MiB or more use the Windows app’s native read-only pager. CSV pages contain up to 500 rows, with Table View and Raw, page navigation, search, and Go to row. This view has different controls from the full table shown above.

Save As from a paged CSV table exports the complete source file, not just the loaded page. Selection, filtered export, column management, rectangular copying, and changed-order options are unavailable there. Page search does not create a filtered export. Save As from Raw copies the original file.

How much fits in an Excel export?

One workbook sheet supports up to 1,048,575 data rows plus the header, 16,384 columns, and 32,767 characters per cell. The app reports unsupported sizes rather than silently truncating the data. CSV values are exported as text; JSON number and boolean values can use their corresponding cell types.

Can I open an .xlsx file in CodePrettify?

This workflow exports Excel workbooks from Table View. It does not add .xlsx as an input format. Open the saved workbook in Excel or another compatible spreadsheet application.

Does table manipulation overwrite my source?

Filtering, sorting, and dragging columns change the table view. Use Save As to create an output with those choices. To retain the incoming bytes exactly, choose Original file copy.

How large can a schema comparison be?

Each input can be up to 128 MiB, with at most 4,096 columns. Profiles inspect the rows while retaining bounded examples; Data preview shows only the first ten records. It is a structure comparison, so use another workflow when you need to reconcile individual records by a key.

Where does CSV processing happen?

Opening, filtering, exporting, and comparing these local files runs on your device in the Windows application. This website supplies documentation and sample downloads; you do not upload your CSV to follow the guide.

Related reference

Start with the two sample CSV files

Use the Windows application to inspect the table, save a selected or filtered delivery, and compare its structure with the earlier format.