---
title: Free Random IP Generator | TestingBot
description: Generate random IP address which can be used for your tests. Generate
  fake IP addresses for your testcases for free.
source_url:
  html: https://testingbot.com/free-online-tools/random-ip-generator
  md: https://testingbot.com/free-online-tools/random-ip-generator.md
---

[Tools](https://testingbot.com/free-online-tools)Data Generators

# Random IP Generator

Generate valid IPv4 addresses

Generate random IP addresses, to be used in your tests, for free with this online IP generator. These are valid IPs that can be used for testing your website or mobile app.

## Random IP Generator

Generated IP Address

## What is a Random IP Generator?

A random IP address generator will create valid looking, random IP addresses, which can be used in your tests (automated or manual). If your test, or the website/mobile app you are testing, requires a valid IP address, you can use this tool to create dummy IPs.

## Why do I need an IP Address Generator?

The generator will generate a valid, public IP address. This IP address can be used in your automated or manual tests when required by the website or mobile app you are testing.

## What is the difference between an IPv4 and IPv6 address?

The IPv4 address is the original format of an IP address and is still used by over 90% of all internet appliances. It consists of a 32-bit binary number, separated by dots.

An IPv6 address is an 128-bit binary number, separated by colons. As it is 128 bit, the number of possibilities is exponentially bigger than the original IPv4 address.

## How do I generate an IP address in my test cases?

This depends on the programming language you are using. An example on how to do this with Javascript or NodeJS can be found below.

```javascript
const randomIp = Array(4).fill(0).map((_, i) => Math.floor(Math.random() * 255) + (i === 0 ? 1 : 0)).join('.');
```

### All Tools

#### Accessibility

- [Color Contrast Checker](https://testingbot.com/free-online-tools/color-contrast-checker)

#### Calculator

- [Test Effort Estimator](https://testingbot.com/free-online-tools/test-effort-estimator)
- [Test Coverage Calculator](https://testingbot.com/free-online-tools/test-coverage-calculator)

#### Converter

- [Unix Timestamp Converter](https://testingbot.com/free-online-tools/unix-timestamp-converter)

#### Formatter

- [Puppeteer to Playwright Converter](https://testingbot.com/free-online-tools/puppeteer-to-playwright-converter)
- [JSON Prettifier](https://testingbot.com/free-online-tools/json-prettify)
- [HTML Escaper](https://testingbot.com/free-online-tools/html-escape)
- [XML Prettifier](https://testingbot.com/free-online-tools/xml-prettify)
- [Remove Whitespace](https://testingbot.com/free-online-tools/remove-all-whitespace)
- [Text to One Line](https://testingbot.com/free-online-tools/text-to-one-line)
- [PX to REM Converter](https://testingbot.com/free-online-tools/px-to-rem-converter)
- [CSS Prettifier](https://testingbot.com/free-online-tools/css-prettify)

#### Generator

- [Random Avatar Generator](https://testingbot.com/free-online-tools/free-avatar-generator)
- [Placeholder Image Generator](https://testingbot.com/free-online-tools/placeholder-image-generator)
- [Random Address Generator](https://testingbot.com/free-online-tools/random-address-generator)
- [Credit Card Generator](https://testingbot.com/free-online-tools/credit-card-number-generator)
- [Random Number Generator](https://testingbot.com/free-online-tools/random-number-generator)
- [JWT Parser](https://testingbot.com/free-online-tools/jwt-parser)
- [Fake Person Generator](https://testingbot.com/free-online-tools/fake-person-generator)
- [Hash Text](https://testingbot.com/free-online-tools/hash-text)
- [Lorem Ipsum Generator](https://testingbot.com/free-online-tools/lorem-ipsum-generator)
- [Random GUID Generator](https://testingbot.com/free-online-tools/random-guid-generator)
- [Character Count](https://testingbot.com/free-online-tools/character-count)
- [ASCII to Binary](https://testingbot.com/free-online-tools/ascii-to-binary)
- [Random Color Generator](https://testingbot.com/free-online-tools/random-color-generator)
- [Open Graph Meta Generator](https://testingbot.com/free-online-tools/og-meta-generator)
- [QR Code Generator](https://testingbot.com/free-online-tools/qr-code-generator)
- [Device Information](https://testingbot.com/free-online-tools/device-information)
- [User Agent Parser](https://testingbot.com/free-online-tools/user-agent-parser)
- [Image Extractor](https://testingbot.com/free-online-tools/image-extractor)
- [Test Plan Generator](https://testingbot.com/free-online-tools/test-plan-generator)

#### Network

- [CORS Tester](https://testingbot.com/free-online-tools/cors-tester)
- [My GPS Location](https://testingbot.com/free-online-tools/my-gps-location)
- [What's My IP Address](https://testingbot.com/free-online-tools/whats-my-ip-address)
- [IP Subnet Calculator](https://testingbot.com/free-online-tools/ip-subnet-calculator)

#### Scheduler

- [Cron Expression Generator](https://testingbot.com/free-online-tools/cron-expression-generator)

#### Speed

- [Critical CSS Generator](https://testingbot.com/free-online-tools/critical-css-generator)

#### Testing

- [XPath & CSS Selector Tester](https://testingbot.com/free-online-tools/xpath-css-selector-tester)

[View all tools](https://testingbot.com/free-online-tools)
