Skip over navigation


Finds the namespace(s) that a given Pascal unit belongs to.

Version 0.2.0-beta
Released 2022-11-02
O/S Windows 7 / Windows Server 2012 R2 & later


Throughout this page references to namespaces(s) are erroneous – please read unit scope name(s) wherever you see namespace(s). Yep, I misunderstood the difference when I first named the program!

Unit2NS is a little tool for Delphi programmers to find the namespace(s) that a unit belongs to.

Since the introduction of namespaces to Delphi I've been struggling to remember which namespaces some units belong to. OK, sometimes the code editor pops up a list of unit names in a namespace, but what I wanted was to type in a unit name and be told what namespace(s) the unit may belong to.

This program does that. When you have found the required namespace you can copy the fully qualified unit name to the clipboard ready for pasting into your code editor. It will also let you examine a namespace to see what units it contains.

You have to teach Unit2NS about what units exist and the namespaces they belong to. The program makes this easy to do by being able to scan directory trees of source code. Unit2NS can remember more than one set of unit-namespace "mappings", which makes it useful for using with different versions of Delphi.

The program is available as either 32 or 64 bit versions.


This program is hosted on GitHub in the delphidabbler/unit2ns repository. The 32 and 64 bit versions are available as separate downloads from the repository's Releases section.

Each release gives the option of downloading either the programs in executable format or the source code. Your options are:

  • Choose to download a zip file containing the 32 bit version of UNit2NS or for the 64 bit version. Extract the content of the chosen .zip file. The included read-me file (README.txt) explains how to install the program.
  • Choose Source to download the source code in .zip format.
  • Choose Source code.tar.gz to download the source code as a g-zipped tarball.

Get v0.2.0-beta from GitHub


The following documentation is available. All the links open on GitHub.

Bugs & Feature Requests

If you find any bugs or want to suggest a new feature, please use the GitHub project's issue tracker. You can browse existing issues to see if a similar one has already been raised. If so please add any further information as comments. If there is no similar issue please raise new one.

You will need a GitHub account if you want to create or edit an issue.