Handy Dev Tools
Simple online tools for everyday tasks.

No favorites

    Base64 Encoder/Decoder
    Markdown to HTML
    HTML to Markdown
    URL Encoder/Decoder
    Unicode Escape Converter
    Unicode Encode/Decode
    SQL Formatter
    SQL Splitter
    JSON Formatter
    XML Formatter
    YAML Formatter
    GraphQL Formatter
    JSON to YAML Conversion
    YAML to JSON Conversion
    JSON to TOML Conversion
    TOML to JSON Conversion
    HTML Entity Encode/Decode
    TOML to YAML Conversion
    YAML to TOML Conversion
    CSV to SQL INSERT Conversion
    Markdown Table Generator
    JSON to XML Conversion
    XML to JSON Conversion
    UUID Generator
    ULID Generator
    Password Generator
    Hash Generator
    Lorem Ipsum Generator
    Lorem Picsum Image URL Generator
    Test Data Generator Tool
    QR Code Generator
    S3 Path Parser & Converter
    IP Address Calculator
    Subnet Split
    Subnet Consolidation
    CloudFront Signed URL Generator
    RDS Connection String Generator
    Coordinate Format Converter
    Geo Format Converter
    JWT Decoder & Parser
    Basic Auth
    Password Strength Analyzer
    Credit Card Validator
    RSA Key Pair Generator
    Case Conversion
    Romaji Conversion
    Roman Numeral Conversion
    Phonetic Code Conversion
    Character Counter
    Text Diff
    HTML Tag Remover
    Regex Tester
    Color Conversion
    Dice Roll
    Crontab generator
    Crontab parser
    Emoji Picker
    DateTime Converter
    HTTP Status Code Search
    Port Number Search
    MIME Type Lookup
    Base64 File Converter
    Image Base64 Encode/Decode
    JSON to XML Conversion
    XML to JSON Conversion
    User-Agent Parser
    URL Parser
    OGP Checker
    Commit Message Generator
    Chmod Calculator
    Terminal GIF Generator
Ctrl+K

Subnet Consolidation

Consolidate multiple contiguous subnets into one larger subnet

Subnets to Consolidate

How to use

About this tool

Consolidates multiple contiguous subnets (CIDR notation) into one larger subnet. Determines in real time whether consolidation is possible, and if so, displays the consolidated subnet, original subnet count, and saved address count. If consolidation is not possible, clearly displays the reason. All calculations are done in the browser.

How to use

Enter the subnets to consolidate in CIDR notation (e.g., 192.168.1.0/26), one per line. Results are displayed in real time as you type. If consolidation is possible: The consolidated subnet (CIDR notation), original subnet count, consolidated subnet count (always 1), and saved address count are displayed. If consolidation is not possible: A "Cannot Consolidate" message and reason (e.g., "Subnets are not contiguous") are displayed. You can copy the results.

Options

Subnets to consolidate: Enter CIDR notation (e.g., 192.168.1.0/26), one per line. Consolidation requirements: All subnets must have the same prefix length, be in the same network address space (first 3 octets must match), be contiguous, and the subnet count must be a power of two (2, 4, 8, 16, ...). Results: The consolidated subnet (CIDR notation), original subnet count, consolidated subnet count (always 1), and saved address count are displayed.

Use cases

• Network design optimization (consolidating multiple small subnets into one to simplify management) • Efficient use of network resources (removing unnecessary subnet boundaries to save address space) • Network redesign (reviewing existing subnet configurations to identify consolidatable subnets) • Network management (verifying and documenting consolidated subnet information) • Router and switch configuration updates (updating settings based on consolidated subnet information)

How it works

Subnet consolidation determines whether multiple contiguous subnets can be consolidated and, if so, calculates the consolidated prefix length and network address. Consolidation checks: Verifies that all subnets have the same prefix length, are in the same network address space, are contiguous (previous subnet's broadcast address + 1 = next subnet's network address), and that the subnet count is a power of two. Consolidated prefix length calculation: consolidatedPrefix = originalPrefix - log2(subnetCount). Consolidated network address: The first subnet's network address. Saved address count calculation: Total addresses before consolidation - addresses after consolidation. All calculations are implemented with JavaScript bitwise operations and complete instantly in the browser.

Privacy and data

All calculations are done in the browser; no network information is sent to any server.