Convert TPS to CSV

What converting a TopSpeed TPS file to CSV keeps and loses, how to check the output, and when CSV is or isn't the right target.

Converting a TPS file to CSV is usually a way to get data out of an older application and into something current, such as a spreadsheet, a database import or a reporting tool. This review covers what the conversion keeps, what it drops, and what to check before you rely on the result. No converter was tested for this article and no specific product was evaluated, so it describes general mechanisms and checks, not measured results.

First, confirm what kind of TPS file you have

The .tps extension most often refers to TopSpeed, the database file format used by applications built with the Clarion development environment. Other programs have used the same extension for unrelated files. The extension alone does not prove where a file came from. If the file came from an older business, accounting or line-of-business application, TopSpeed is the likely origin. If you are unsure, check with the software vendor or the application's documentation before choosing a converter. The rest of this article assumes a TopSpeed database file.

Is converting TPS to CSV suitable for your use?

Converting to CSV is suitable when you need the records themselves in a portable, readable form. Common reasons are archiving data from a retired application, loading it into a spreadsheet for review, or staging it for import into a modern database. The main benefit is that CSV is plain text that almost any tool can open. The main cost is that CSV holds only rows and columns of text. It does not keep the database structure, the field types, the indexes or the links between tables.

Keep the original TPS files as the authoritative source if the Clarion application is still in use. A CSV export is a snapshot. Editing it does not change the application's data, and the edits cannot simply be loaded back. If your goal is a full migration into another database, CSV still works as an intermediate step, but you will need to rebuild keys, types and relationships on the destination side.

What the conversion actually changes

This is a change of file format, not a visual text effect. Nothing is reversed, mirrored or restyled. The converter reads TopSpeed's binary storage, decodes each record, and writes the field values as delimited text. One line becomes one record and a separator such as a comma marks each field. The stored characters themselves change. A TPS file is not human-readable text, while the CSV is.

Several kinds of information are transformed or lost in the process:

  • Field types: numbers, dates, times and strings all become text. Any later tool has to work out the types again.
  • Dates and times: Clarion applications typically store these as numeric values, not formatted dates. A converter that does not translate them will output plain numbers that look meaningless.
  • Multiple tables: a single TPS file can contain more than one table. Each table usually becomes its own CSV file, or the converter may ask you to choose one.
  • Indexes and keys: these define sorting and uniqueness in the original database. CSV has no place for them.
  • Memo and binary fields: long text and binary data may be exported as escaped text or written to separate files, or a converter may skip them. Behavior varies by tool.
  • Grouped or array fields: structures that hold several values in one field have to be flattened into several columns or one combined string. The tool decides which.
  • Encrypted files: TopSpeed files can be password-protected. A converter generally needs the password to read them.

CSV has its own rules for awkward values. A field that contains the delimiter, a quotation mark or a line break must be wrapped in double quotes, and any quotation marks inside it are doubled. The snippet below is an illustration of that rule, not output from any specific converter.

id,name,notes
1042,"Smith, Jane","Said ""call after 5"""
1043,Lee,"Line one
Line two"

If a converter does not quote correctly, a single comma inside an address or note can shift every later column in that row.

Will the result stay readable and usable after sharing?

CSV is plain text, so it copies, emails and versions cleanly. Most problems come from how the receiving program interprets it, not from the file itself.

Issue | What happens | What to do
Character encoding | Older Clarion data is often in a legacy Windows code page. If it is read with the wrong encoding, accented letters and symbols turn into garbled characters. | Confirm the source encoding and export to UTF-8. Check names that contain non-ASCII characters.
Spreadsheet auto-formatting | Spreadsheet programs may strip leading zeros, show long numeric IDs in scientific notation, or reinterpret strings that look like dates. | Import the file as text columns rather than opening it directly. Compare the identifier columns with the source.
Delimiter conventions | In regions where the comma is the decimal separator, spreadsheets may expect semicolons. | Agree on the delimiter with whoever receives the file, or use tab-separated output.
Line breaks inside fields | Quoted multi-line values are valid CSV, but some simple tools split them into extra rows. | Test with the actual destination tool before handing the file over.

Tab-separated output (TSV) is worth considering when the data contains many commas, as addresses and notes often do. Tabs appear less often inside business text, so quoting problems are less likely. The tradeoff is that some import tools expect commas by default.

On accessibility: a CSV opened in a spreadsheet or database tool is ordinary tabular text, and its usability with assistive technology depends on that application. CSV has no formal header marker. Make sure the first row contains clear column names so that both people and tools can identify fields. No screen reader or specific destination application was tested for this article.

Checking a converted file before you rely on it

  • Compare the record count in the CSV with the count the original application reports for the same table.
  • Spot-check a few records end to end, including ones with long notes, special characters and empty fields.
  • Confirm that date and time columns show real dates, not raw numbers.
  • Check that identifier columns keep their leading zeros and full length.
  • Find out whether the converter includes or excludes deleted or inactive records, if that matters for your use.
  • Note which tables, memo fields or binary fields were skipped, and keep the original TPS files.

Privacy and handling

TPS files from business applications often contain customer, financial or personnel records. Before uploading one to an online converter, find out from the provider's actual policies how files are processed and retained. A tool's appearance or marketing wording is not evidence of how it handles data. For sensitive data, a converter that runs locally avoids that question entirely.

Bottom line

TPS to CSV is a practical way to make legacy TopSpeed data readable and portable. The records survive well if the encoding, dates and quoting are handled correctly. Types, keys, relationships and some memo or binary content do not carry over. Use CSV for review, archiving or as an import step, keep the TPS originals as the source of record, and check the output against the original application before anyone depends on it.