---
name: "mkcsmapper"
section: "1"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/mkcsmapper"
---

# mkcsmapper(1)

generates hashed conversion data for iconv(3)

## NAME

**mkcsmapper** – generates hashed conversion data for [iconv(3)](/iconv/3.md)

## SYNOPSIS

**mkcsmapper** \[**-d**\] \[**-m** \| **-p**\] \[**-o** *outfile*\] \[*infile*\]

## DESCRIPTION

The **mkcsmapper** utility generates binary conversion data from plain text conversion tables for the [iconv(3)](/iconv/3.md) library. The conversion data has two components: The conversion mapping between specific character encodings. A pivot file, which the possible source and destination encoding pairs or the set of mappings to use for a compound encoding.

The following options are available:

- **-d**

  Turns on debug mode.

- **-m**

  Generate mapping data from *infile*.

- **-o** *outfile*

  Put generated binary data to *outfile*.

- **-p**

  Generate pivot data from *outfile*.

## EXIT STATUS

The **mkcsmapper** utility exits 0 on success, and \>0 if an error occurs.

## SEE ALSO

[iconv(1)](/iconv/1.md), [mkesdb(1)](/mkesdb/1.md), [iconv(3)](/iconv/3.md)

## HISTORY

**mkcsmapper** first appeared in NetBSD 2.0, and made its appearance in FreeBSD 9.0.

## AUTHORS

This manual page was written by Gabor Kovesdan ⟨*gabor@FreeBSD.org*⟩.
