サブネット計算機とは?

無料のオンライン サブネット計算機。ネットワークアドレス、ブロードキャストアドレス、利用可能ホスト数などのサブネット情報を計算。

Subnetting is the practice of dividing an IP network into smaller subnetworks for routing efficiency, security segmentation, and address management. Subnet Calculator computes all key parameters from an IP address and CIDR prefix: network address, broadcast address, usable host range, subnet mask, wildcard mask, total hosts, IP class, and binary representations.

Enter an IP address in dotted decimal notation (e.g., 192.168.1.0) and select the CIDR prefix length from /0 to /32 using the slider or quick-select buttons for common prefixes (/8, /16, /24, /32). The calculator immediately displays: Network address (the first address in the subnet), broadcast address (the last address), usable host range (all addresses between network and broadcast), subnet mask (in dotted decimal, e.g., 255.255.255.0), wildcard mask (the inverse of the subnet mask), total number of hosts (2^(32-CIDR)), and number of usable hosts (total - 2).

The binary representation shows both the IP address and subnet mask in binary format for educational purposes — essential for understanding how the subnet mask separates the network portion from the host portion. The IP class (A, B, C, D, E) is also displayed based on the first octet.

The CIDR slider ranges from /0 (0.0.0.0/0, the entire internet) to /32 (a single host). Common values: /24 (256 addresses, 254 usable — typical office subnet), /16 (65,536 addresses — large organization), /8 (16.7 million — very large network).

サブネット計算機の実際の使用例

/24 CIDRで小規模オフィスのサブネットを計画する

ネットワークエンジニアがオフィスネットワークを構築する場合。192.168.1.0にCIDR /24を入力すると、ネットワークアドレス192.168.1.0、ブロードキャスト192.168.1.255、利用可能範囲192.168.1.1〜192.168.1.254、サブネットマスク255.255.255.0が表示されます。ホスト総数256台・利用可能254台で、小規模オフィスには十分です。バイナリ表示では24ビット後が/24境界となることが確認できます。

IPアドレスがそのサブネットに適切か確認する

デバイスがIP 10.0.5.137・サブネットマスク/20で構成されている場合。これらの値を入力すると、ネットワークアドレスは10.0.0.0、ブロードキャストは10.0.15.255、利用可能範囲は10.0.0.1〜10.0.15.254となります。IP 10.0.5.137はこの範囲内に収まるため、構成は正しいと判断できます。ホスト総数は4,096台です。

ポイントツーポイントリンクのサブネットサイズを計算する

2台のルーター間のポイントツーポイント接続に必要なのは利用可能アドレス2つだけです。CIDR /30を使用し、10.0.0.0/30を入力します。ネットワーク10.0.0.0、ブロードキャスト10.0.0.3、利用可能なのは10.0.0.1と10.0.0.2です。利用可能ホストは2台、ホスト総数は4台。ポイントツーポイントリンクには最も効率的なCIDRです。

なぜサブネット計算機を使うのか?

  • IPv4に対応
  • CIDR表記とサブネットマスクの内訳
  • ネットワークアドレス、ブロードキャスト、ホスト範囲
  • バイナリ変換表示

サブネット計算機の使い方 — ステップバイステップ

1

IPアドレスとサブネットマスク(CIDR)を入力します。

2

ネットワークアドレス、ブロードキャストアドレス、使用可能なホスト範囲を表示します。

3

サブネットマスクの詳細内訳を確認します。

4

バイナリ表現も表示します。

サブネット計算機はこんな方におすすめ

  • ネットワーク管理
  • ITプロフェッショナル
  • DevOps
  • システム管理

サブネット計算機のプロのヒント

  • 1利用可能ホスト数は常にホスト総数から2を引いた値です(ネットワークアドレスとブロードキャストアドレスはホストに割り当てられないため)。/31の場合、計算式では2^1 − 2 = 0台となりますが、/31はブロードキャスト不要のポイントツーポイントリンクで用いられます。
  • 2ワイルドカードマスクはサブネットマスクの逆数で、バイナリで0は1に、1は0になります。ACL(アクセスコントロールリスト)やOSPFなどのルーティングプロトコルでのマッチングに使用されます。
  • 3IPv4では先頭オクテットでアドレスクラスが決まります。1〜126(A)、128〜191(B)、192〜223(C)、224〜239(Dマルチキャスト)、240〜255(E予約)です。
  • 4サブネット化するときは成長を見越して計画しましょう。/24サブネット(利用可能254台)は10台のデバイスには過剰に思えても、再割り当てなしでネットワークを拡張できます。

サブネット計算機 — よくある質問

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation uses an IP address followed by a slash and a number (e.g., 192.168.1.0/24) that indicates how many bits are used for the network prefix.

How do I calculate usable hosts?

Usable hosts = 2^(32-CIDR) - 2. The -2 accounts for the network address (first) and broadcast address (last), which cannot be assigned to hosts.

Can I use these tools with sensitive/proprietary data?

Absolutely. All processing runs locally in your browser with zero server uploads. This makes these tools safe for proprietary code, internal API keys, and confidential data.

Do these tools work offline?

Yes, once the page has loaded, most developer tools continue functioning without an internet connection. This makes them ideal for air-gapped environments or travel.

What browsers are supported?

All modern browsers are supported: Chrome, Firefox, Safari, and Edge. Internet Explorer is not supported. The tools leverage modern JavaScript APIs like Web Crypto, TextEncoder, and BigInt.

サブネット計算機を今すぐ試す

無料オンラインツール — ブラウザで動作、サインアップ不要。今すぐ使い始められます。

今すぐ試す
Free Forever · No Sign-up

182 Free Tools at Your Fingertips

All free online tools for developers, designers, students, and creators. Every tool works in your browser — no sign-up, no data collection.