Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

unormalize [args] [FILES] nfc [args] [files] nfd [args] [files] Converts files or standard input to the given format. Options -i EXTENSION -- Modify files inplace, saving back-ups with EXTENSION -f FORMAT -- normalization form; default is NFC.

Project Description

Converts UTF-8 input to the desired UTF-8 in Unicode normalization form.

Read about the Unicode Normalization Forms!


There are five executables included, that all have the exact same usage and arguments:

  • unormalize
  • nfc
  • nfd
  • nfkc
  • nfkd

You may either redirect or pipe input into unormalize (and its buddies), or provide filenames as arguments.


-f FORM/--form=FORM
Selects the normalization form: one of NFC, NFD, NFKC, or NFKD. The equivalently named executables imply their respective normalization form; unormalize is equivilent to nfk without the --form arugment.
Filenames must be specified as arguments. If so, this opens them, and converts them into the desired normalization form, in place. EXTENSION is the extension given to back-ups of the original files.


Convert clipboard contents to NFC (OS X):

$ pbpaste | nfc | pbcopy

Convert a file, in-place, to NFKD:

$ nfkd --in-place=.bak file.txt && rm file.txt.bak

Convert circled, variants, and half-widths to their compatible forms:

$ echo 'ℍ①カ' | nfkc


© 2015 Eddie Antonio Santos. MIT Licensed.

Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
unormalize-0.1.0.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Oct 31, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting