Back to guides

Number Base Converter|Binary, decimal, hex and octal conversion

Pick input base 2/8/10/16, parse integers with browser parseInt, copy dec/bin/oct/hex—settle what 0x1F90 means before you edit firewall rules or compose files.

By WGinit · November 30, 2026 · 4 min read · 7 views

When logs print 0x1F90 instead of a port

Docker and some ss builds list published ports in hexadecimal (0x1F90). Guessing leads to wrong security groups, wrong Ingress rules, and curl aimed at the wrong socket.

Vendor configs dump bit masks as 0xFF while Unix prints file modes as 0o755—octal permissions, not hex. Conflating the two while multitasking is how 493 gets mistaken for 755.

CIDR stays in the IPv4 Docker and VPC guide; this tool rewrites one integer across bases.

How Number Base Converter behaves

Open Number Base. Choose input base 2, 8, 10, or 16 with the pill buttons. Type digits for that base (placeholders like FF, 755 omit 0b/0o). Hex accepts 1F90 or 0x1F90 when base 16 is selected; pasting 0x… with base 10 truncates at x.

The tab runs parseInt(trim, base) locally. Invalid characters surface invalidDigit (NumberBase.tsx). Results render in a four-cell grid: decimal, binary, octal, hexadecimal—each row has its own copy control.

Hex output uses uppercase letters. The UI targets integers under JavaScript parseInt rules, not fixed-width unsigned 32-bit semantics. Huge constants like FFFFFFFF may not match your production language’s overflow story; treat the decimal cell as a sanity check, not a spec.

Placeholders hint typical values: 11111111 (bin), 377 (oct), FF (hex), 255 (dec).

Three scenarios: port, permission, bitmask

Docker / compose: log shows 0x1F90 → hex input 1F90 → decimal 8080 → fix ports: and security groups.

Unix mode 0o755: octal input 755 → decimal 493—do not treat 755 as hex.

Bitmask 0xFF: hex input FF -> decimal 255 for one literal; combine masks in your language, not in the tool input.

Flow (figure)

Log literal to four bases to ticket notes

Order: strip 0x / pick input base → read decimal cell → edit infra or compare API fields → branch to triage when decimal is right but behavior is wrong.

Still wrong (figure)

Octal permissions, parseInt truncation, sockets

0o755: select octal, enter 755, confirm decimal 493 against stat output—not hex 755.

Port still closed: decimal conversion is correct but packets die on bind address, IPv6 brackets, or NAT—use the IPv4 guide, not another base guess.

Compound masks: expressions like 0xFF & 0x0F belong in your REPL; this tool converts one literal at a time.

Limits

Bases 2, 8, 10, and 16 only.

Browser integer parsing—not BigInt, not arbitrary precision.

No /etc/services lookup, no CIDR math, no TLS probes.

Inputs stay client-side; port lists still leak topology in screenshots.

FAQ

QLogs show 0x1F90—what should I type?

AThe input field expects digits without radix prefixes. Select hexadecimal (base 16) and enter 1F90 (logs often include 0x; you can strip it for clarity). JavaScript parseInt accepts a 0x prefix when the radix is 16, but with decimal (10) selected, 0x1F90 stops at x and yields 0. WoDeTool uses parseInt(trim, base) in NumberBase.tsx with the base you pick.

QIs 0x1F90 the same as 8080?

ASame integer—hex input 1F90 should read decimal 8080 on the page.

QHow is this different from the IPv4 subnet tool?

ASubnet calculator eats A.B.C.D/n. This page eats log literals like hex ports and masks—see the CIDR planning guide.

Worked example (step by step)

1. Log line: PublishedPort=0x1F90/tcp must match compose 8080:8080.

2. Open Number Base, hex (16), enter 1F90 without 0x.

3. Copy decimal 8080; update staging compose ports and redeploy.

4. curl -I http://127.0.0.1:8080 should hit the service; if not, grep firewall rules for wrong decimals like 3190.

5. Same ticket shows mask: 0x0F → hex input 0F, decimal 15, compare with uint8 docs.

6. Gateway JSON code: 500 with side log 0x1F4 → decimal 500; continue in the API response debugging guide.

7. Attach a screenshot of all four cells plus the chosen input base in the ticket.

Copy-paste reference

Select base 16, enter 1F90 in Number Base → decimal 8080.

# docker sometimes prints PublishPort in hex
0x1F90 → 8080/tcp
0xFF → bitmask 255 (verify in your config doc)

Related tools

Related guides