Network tools and reference tables
CIDR and chmod calculators, a user-agent parser and searchable tables: HTTP status codes and headers, MIME types, ports, ASCII, emoji, countries, currencies.
- CIDR / Subnet Calculator: Network, broadcast, mask and host count for an IPv4 CIDR block.
- Chmod Calculator: File permissions as octal (755) or symbolic (rwxr-xr-x).
- HTTP Status Codes: Every HTTP status code with what it means and when to use it.
- MIME Types: Common MIME types by file extension, searchable.
- Port Numbers: Well-known and registered TCP and UDP ports and the services behind them.
- ASCII Table: Every ASCII character with its decimal, hex, octal, binary and HTML code.
- Emoji List: Every emoji by category: click to copy it, with code points and HTML, JavaScript and CSS escapes.
- HTTP Headers: Request and response headers with their meaning, an example value and the defining spec.
- Country Codes: ISO 3166-1 country codes with dialling code, capital, continent, currency and flag.
- Currency Codes: ISO 4217 currency codes with name, symbol, decimal places and the countries that use each one.
- JavaScript Key Code Viewer: Press a key to see event.key, event.code, keyCode, location and modifiers.
- User Agent Parser: Read the browser, engine, operating system and device type out of a user-agent string.
What is here
- Subnets: the CIDR / Subnet Calculator gives the network, broadcast address, mask and host count for an IPv4 CIDR block.
- File permissions: the Chmod Calculator converts between octal, such as 755, and symbolic, such as rwxr-xr-x.
- HTTP and the web: HTTP Status Codes and HTTP Headers with what each means, MIME Types by file extension, Port Numbers for well-known TCP and UDP services, and the User Agent Parser.
- Characters and keys: the ASCII Table in decimal, hex, octal, binary and HTML, the Emoji List with code points and escapes, and the JavaScript Key Code Viewer for keyboard events.
- Countries and money: Country Codes (ISO 3166-1, dialling codes) and Currency Codes (ISO 4217).
Quick reminders
- CIDR. A /24 holds 256 addresses, 254 of them usable. Each step down in the prefix doubles the block, so a /23 holds 512.
- chmod. Read is 4, write is 2 and execute is 1. The three digits are owner, group and others, so 644 is a typical file and 755 a typical directory or script.
- HTTP status classes. 2xx is success, 3xx is a redirect, 4xx is a client error and 5xx is a server error.
- Port ranges. 0 to 1023 are well-known ports, 1024 to 49151 are registered and 49152 to 65535 are dynamic.
Frequently asked questions
- How many hosts are in a /24 subnet?
- A /24 has 256 addresses. The first is the network address and the last is the broadcast address, which leaves 254 for hosts.
- What does chmod 755 mean?
- The owner can read, write and execute; the group and everyone else can read and execute. In symbolic form it is rwxr-xr-x.
- What is the difference between a 301 and a 302 redirect?
- A 301 says the resource has moved permanently, so browsers and search engines update to the new URL. A 302 says the move is temporary and the original URL should keep being used.
- Which port does HTTPS use?
- HTTPS uses TCP port 443 by default. Plain HTTP uses port 80 and SSH uses port 22.