What is Faker.js?

Faker.js is a popular JavaScript library that generates realistic fake data for testing and development purposes. It provides a wide variety of data types including names, addresses, emails, phone numbers, dates, and more. By using templates with Faker.js placeholders, developers can quickly create sample content that looks and feels like real user data without exposing sensitive information.

Tool description

This Random Text Generator allows you to create custom text with realistic dummy data using Faker.js placeholders. Simply write a template with placeholders like {{person.firstName}}, {{internet.email}}, or {{location.city}}, and the tool will replace them with randomly generated realistic values. You can generate multiple results at once, making it perfect for creating test data, mockups, or sample content.

Examples

Example 1: Personal Information

Hello, my name is {{person.firstName}} {{person.lastName}}.
I live in {{location.city}}, {{location.country}}.
My email is {{internet.email}} and my phone is {{phone.number}}.

Example 2: Business Card

{{person.fullName}}
{{person.jobTitle}} at {{company.name}}
Email: {{internet.email}}
Phone: {{phone.number}}
Address: {{location.streetAddress}}, {{location.city}}, {{location.zipCode}}

Example 3: Product Review

Review by {{person.firstName}} on {{date.past}}
Rating: {{number.int(1,5)}} stars
{{lorem.paragraph}}

Features

  • Generate random text from custom templates
  • Support for 100+ Faker.js data types (names, emails, addresses, dates, etc.)
  • Parameters support for functions like {{number.int(1,100)}}