November 27, 2026

Dress Code Decoder App: A Single-File Tool With SVG Outfits and a Closet Check

Laptop on a desk showing a dress code decoder web app beside coffee and a notebook

The Dress Code Decoder is a single HTML file with no libraries and no build step. It turns the dress code on an invitation into a wear list, a watch-for list and a closet check, and draws the outfit as vector art.

It is the third in a set of men’s fashion apps from x9m8, a site run by the same owner as Marcellino NY. The earlier app was the suit size calculator.

The tool also has a full screen button, and it lives at apps.x9m8.com/dress-code-decoder.

Data first, drawing second

The core is a table of nine codes: white tie, black tie, black tie optional, creative black tie, cocktail or semi-formal, business formal, business casual, smart casual and casual. Each row holds a formality level, a wear list, a list of cautions and the source keys behind it. The rows come from published guides such as The Black Tux, Generation Tux and Real Men Real Style.

Where sources disagree, the table says so instead of picking a winner. The tie at cocktail attire is the clean example: Jos. A. Bank expects one and Easy Weddings calls it optional.

Smartphone on a wooden table showing a dress code selector app next to a folded navy jacket

The closet check is a lookup table

The verdict logic has no scoring model. It is a five-by-nine grid: five things a person might own against nine codes. Each cell holds one of four verdicts, works, possible, dressier than needed or not enough, plus a one-line reason. A grid is easy to audit, and a wrong cell is a one-line fix.

Some cells are firm because the sources are. The Knot quotes Nordstrom’s Jian DeLeon saying black tie requires a tuxedo, so a dark suit scores “not enough” there and “works” at black tie optional.

Outfits drawn in code

Each outfit is inline SVG built from layers: trousers, shirt, jacket, lapels, neckwear and shoes, with colors, tails, a cummerbund or pinstripes switched on per code. No images load, so the sketch stays sharp at any size and the page stays light.

Man in a black tuxedo checking his reflection in a hallway mirror before an evening event
AI-generated image

Casual, smart casual and business casual have no fixed uniform, so the app labels those sketches as examples and not rules.

State in the address bar

The selected code and the closet choice are written to the URL with history.replaceState, as ?code=black&own=dark. A link to a specific answer can be sent to someone else. The same pattern runs in the other x9m8 apps.

Open wardrobe with a tuxedo, navy suit, charcoal suit and tan blazer on hangers

Limits

  • Dress codes shift by region and by host; the app reports what the cited guides say, not a universal rule.
  • The sketches are schematic, not photographs.
  • The app covers men’s codes only.

Sources

502 Posts

Peter Kalafatis writes and edits X9M8. He holds a bachelor's degree from LIU Post and a master's in Media Studies from The New School, with academic work in the philosophy of science, human behavior, AI, and memetics.

View All Posts

Leave a Reply

Your email address will not be published. Required fields are marked *