Microsoft 365, AD and Windows · #31
Online AD Distinguished Name Parser
Splits one or more DNs into CN, OU path, domain and canonical name.
- Data is processed in your browser and not sent to a server
Tool
What does this tool do?
Splitting a DN at commas fails for objects with a comma in their name (CN=Yılmaz\, Ali). The tool applies the RFC 4514 escaping rules, keeps multi-valued RDNs (+) and returns the OU path in readable left-to-right order.
How to use it
- Paste one DN per line and press Calculate.
Fields
- Distinguished names
- One DN per line.
Worked example
| Input | Value |
|---|---|
| Distinguished names | |
Expected result: On the first line the CN is 'Yılmaz, Ali', OU path Istanbul / Muhasebe, domain contoso.local, canonical name contoso.local/Istanbul/Muhasebe/Yılmaz, Ali.
The \, escape shows the comma is part of the name. CN=Sales+UID=s01 on the third line carries two attributes in one RDN; such RDNs break some scripts.
Method and assumptions
Characters are read left to right; the character after a backslash (or two hex digits such as \2C) belongs to the value. An unescaped , or ; separates RDNs, + separates attributes of a multi-valued RDN.
DC components form the domain, OU components in reverse order the OU path. Canonical name: domain/OU1/OU2/CN.
Using the result and troubleshooting
Use the OU path for moves (Move-ADObject) or GPO link checks, and the canonical name to compare with Active Directory Users and Computers.
Limits and common mistakes
- It does not connect to the directory or check whether the DN exists.
- Hex BER-encoded values (
#04…) are not decoded.
Frequently asked questions
Is CN=Users an OU?
No, the default Users and Computers are containers (CN). GPOs can only be linked to OUs, which is why these objects are moved to OUs for GPO targeting.
Related tools and service
- SID Parser and Inventory CheckSplits a SID list into components, shows domain and RID, recognises well-known accounts and flags duplicates.
- AD Group Membership DiffCompares a group's member list at two points in time by identity (SID/GUID); separates renames from membership changes.
Related service: Server and Cloud Management