Convert OV2 to CSV

What converting a TomTom OV2 POI file to CSV actually changes, what can go wrong with coordinates, names and encoding, and when the conversion is worth doing.

OV2 is the binary points-of-interest format used by TomTom navigation devices and software. Each file holds a list of locations, typically a coordinate pair and a name. CSV is a plain-text table. Converting an OV2 file to CSV turns locations that only navigation software can read into rows that a spreadsheet, a text editor, a mapping tool or a script can open. This review explains what that conversion keeps, what it can quietly alter, and how to judge whether the result fits your purpose.

Is converting OV2 to CSV the right move?

Converting is a good choice if you want to inspect, clean, merge, deduplicate or re-import a POI collection somewhere other than a TomTom device. The main benefit is transparency: every location becomes a readable, searchable, editable line of text. The main tradeoff is that CSV has no fixed rules for coordinate order, text encoding, delimiters or quoting. A careless conversion can produce a file that opens without errors but places points in the wrong spot or garbles names.

Keep the original OV2 file if your only goal is to load the points onto a TomTom device. CSV is a working copy for viewing and editing, not a replacement. A plain-text list may serve you better than a CSV if you only need to read the names, or if you want to share a few locations with a person rather than with software. A simple list with one name and address or coordinate per line avoids spreadsheet quirks altogether.

What the conversion actually changes

This is a format conversion, not text styling. Search results for text tools often mix in reversed, mirrored or 'fancy font' Unicode text. None of that applies here. A correct OV2-to-CSV conversion should not reverse, mirror or substitute any characters. It moves the same data from a binary container into delimited plain text. Any change to the visible characters of a name is a defect to look for, not a feature.

The commonly described OV2 layout is a sequence of records, each starting with a one-byte type. In a simple POI record (type 2), the type byte is followed by:

  • A 4-byte little-endian record length.
  • A 4-byte signed longitude.
  • A 4-byte signed latitude.
  • A null-terminated name string.

Coordinates are stored as integers equal to degrees multiplied by 100,000. Files may also contain area or 'skipper' records (type 1), which help devices skip blocks of points quickly, and deleted records (type 0). Other record types are described in some sources. This review could not confirm their exact layouts, so a converter should skip types it does not recognize rather than guess at them.

Conversion changes the data in four concrete ways:

  • Integer coordinates become decimal degrees.
  • Binary records become delimited rows.
  • Name bytes are decoded into characters under some text encoding.
  • Structural records, such as skipper blocks, are usually dropped because they have no meaning in a flat table.

The location and name of each point should survive unchanged. Device-specific structure will not survive.

Coordinate scaling and order

Each stored integer must be divided by 100,000 to get decimal degrees. For example, a stored longitude of -7400600 becomes -74.00600. Skipping this step, or dividing by the wrong factor, produces coordinates that look plausible as numbers but point nowhere useful.

OV2 stores longitude before latitude, while many CSV consumers expect latitude first. Name your columns explicitly, and check one known location on a map before trusting the whole file. The 100,000 factor limits precision to five decimal places, so extra digits in the CSV add no accuracy.

Names and text encoding

The name field is the part most likely to be damaged. OV2 records do not declare their text encoding. Files from different sources may use a Western code page or UTF-8, so a converter has to assume one. A wrong assumption shows up as mangled accented letters or symbols, while plain ASCII names look fine.

Some POI collections also pack extra details into the name field, such as a phone number or category after a separator character. Check whether your files follow such a convention before splitting the name into extra columns. Splitting on a character that also appears inside real names will corrupt them.

Illustrative example

The rows below are hypothetical and only show the shape of a correct conversion. They are not taken from a real file. The second name contains a comma, so it must be wrapped in double quotes. Otherwise a CSV reader would split it into two columns.

latitude,longitude,name
40.71280,-74.00600,Example Point
51.50740,-0.12780,"Café, Riverside"

Check three things in this output. The latitude and longitude columns match their headers. The values carry five decimal places, consistent with the 100,000 scaling. The accented letter and the embedded comma survive intact.

A minimal local converter

The Python sketch below follows the record layout described above. It reads type 2 records, skips type 1 blocks by their fixed 21-byte size, and skips any other record by its declared length. It writes UTF-8 CSV with proper quoting.

The input encoding is a parameter because it cannot be detected reliably. Latin-1 never raises an error, but it may produce wrong characters if the file is actually UTF-8 or another code page. The script has not been tested here against real OV2 files, so compare its output with known points before relying on it.

import csv
import struct
import sys

def read_ov2(path, encoding="latin-1"):
    data = open(path, "rb").read()
    pos = 0
    while pos < len(data):
        rtype = data[pos]
        if rtype == 1:  # area/skipper block: fixed 21 bytes
            pos += 21
            continue
        (length,) = struct.unpack_from("<i", data, pos + 1)
        if length <= 0:
            break
        if rtype == 2:  # simple POI
            lon, lat = struct.unpack_from("<ii", data, pos + 5)
            raw = data[pos + 13 : pos + length].split(b"\x00", 1)[0]
            yield lat / 100000, lon / 100000, raw.decode(encoding, "replace")
        pos += length

with open(sys.argv[2], "w", newline="", encoding="utf-8") as out:
    writer = csv.writer(out)
    writer.writerow(["latitude", "longitude", "name"])
    for lat, lon, name in read_ov2(sys.argv[1]):
        writer.writerow([f"{lat:.5f}", f"{lon:.5f}", name])

OV2 and CSV compared

Property | OV2 | CSV
Storage | Binary records | Plain text rows
Readable in a text editor | No | Yes
Coordinate form | Integers scaled by 100,000 | Decimal degrees, as written by the converter
Text encoding | Not declared in the file | Chosen at export; UTF-8 is the safest default
Device-specific structure | Skipper/area records for fast lookup | None
Searchable and editable | Only with dedicated software | With any text or spreadsheet tool
Loads directly on a TomTom device | Yes | Not without converting back

Will the CSV stay readable after copying or sharing?

A CSV file is plain text, so copying and pasting it does not depend on fonts or special rendering. The usual problems come from the software that opens it.

  • Spreadsheet programs may guess the encoding wrongly and garble non-ASCII names when a UTF-8 file has no byte-order mark.
  • In regions that use a comma as the decimal separator, a spreadsheet may misread the coordinates or expect a semicolon as the column delimiter.
  • Pasting CSV text straight into a spreadsheet cell may land everything in one column. Tab-separated text often pastes into separate columns more reliably.
  • Re-saving the file in a spreadsheet can round coordinates, reformat numbers or change the delimiter. Compare the saved file with the original export before reusing it.

For accessibility, plain CSV has an advantage over binary OV2: screen readers and other assistive technology can read it as ordinary text. A header row with clear column names, such as latitude, longitude and name, makes the table much easier to navigate in a spreadsheet or table view. Raw comma-separated lines read aloud are harder to follow. If you are sharing the list with people rather than software, a short plain-text list with one place per line is usually more readable than a CSV.

Search and editing get easier after conversion. Names can be found with an ordinary text search, and duplicates or typos can be fixed in any editor. To load the edited data back onto a TomTom device, you will need a tool that writes OV2. Expect it to rebuild any skipper records itself, because the CSV does not keep them.

Privacy when using online converters

POI files can include sensitive locations such as a home, a workplace or private contacts. Uploading a file to a web-based converter sends that data to someone else's server. A tool's appearance or marketing tells you nothing about how long it keeps uploaded files or what it does with them. Rely only on a clearly stated policy you have read, or convert locally with software or a script that runs on your own machine.

Known gaps in this review

No specific converter tools were tested for this review. No measurements, compatibility results or device behavior were verified. The record layout described here reflects commonly published descriptions of the format, not an official specification. Exact handling of record types other than 0, 1 and 2, and the text encoding of any particular file, should be checked against your own data. Before relying on a converted file, open it, confirm the column order, and check a few known points on a map.