Bogus 22.0.6
A simple and sane data generator for populating objects that supports different locales. A delightful port of the famed faker.js and inspired by FluentValidation. Use Bogus to create UIs with fake data or seed databases. Get started by using Faker class or a DataSet directly.
No packages depend on Bogus.
## v22.0.6
* Added `Randomizer.String` method to generate strings. Uses `Chars()` method.
* PR 136: Improve speed of `DataSet.ParseTokens()`. Thanks @danij!
## v22.0.5
* Bogus now throws exceptions for locales it doesn't recognize. Improves developer experience.
* New extension method `.ToBogusLocale()` on `System.Globalization.CultureInfo` to help translate from **.NET** locale codes to **Bogus** locale codes.
## v22.0.3
* Generate more realistic Bitcoin addresses.
* New extension method `Faker<T>.GenerateBetween(min, max)` that generates N objects between `min` and `max`. Located in `Bogus.Extensions`. N should be considered non-deterministic but technically depends on the parameters each time this extension method was called.
* Added `Lorem.Paragraphs(min, max)` overload.
* Added improved XML doc comments and parameter names on `Lorem.Paragraph`.
* UK extension method `.ShortCode()` renamed to `.SortCode()` as originally intended.
* Marked `DataSet.Get/.GetObject/BObject` methods as `protected internal`. Reducing API surface noise.
* Added new `.OrNull` in `Bogus.Extensions` to help create randomly null values. Example: `.RuleFor(x=>x.Prop, f=>f.Random.Word().OrNull(f))`.
* New groundwork for extending Bogus with premium (paid) data sets and tooling.
## v22.0.2
* Issue 121: Fixes the inability to `.Ignore(...)` a property or field after a rule had already been set.
## v22.0.1
* Issue 120: `.Generate(n)` now returns `List<T>` instead of `IList<T>`.
* Added `f.Address.CountryCode()` ISO 3166-1 alpha-3 country code generator.
* New `Bogus.Extensions.Extras` namespace for generally useful helper methods.
* Added `Finance.CreditCardNumberObfuscated()` extension to `Bogus.Extensions.Extras` namespace.
* Moved credit card `CheckDigit()` extensions to `Bogus.Extensions.Extras` namespace.
Full History Here: https://github.com/bchavez/Bogus/blob/master/HISTORY.md
.NET Framework 4.0
- No dependencies.
.NET Standard 1.3
- NETStandard.Library (>= 1.6.1)
- System.Globalization.Extensions (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
.NET Standard 2.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 35.6.5 | 7 | 10/27/2025 |
| 35.6.4 | 8 | 09/27/2025 |
| 35.6.3 | 16 | 04/15/2025 |
| 35.6.2 | 16 | 02/27/2025 |
| 35.6.1 | 19 | 11/28/2024 |
| 35.6.0 | 20 | 11/28/2024 |
| 35.5.1 | 18 | 10/05/2024 |
| 35.5.0 | 18 | 11/28/2024 |
| 35.4.1 | 18 | 11/28/2024 |
| 35.4.0 | 20 | 11/28/2024 |
| 35.3.2 | 21 | 11/28/2024 |
| 35.3.1 | 18 | 11/28/2024 |
| 35.3.0 | 20 | 11/12/2024 |
| 35.2.0 | 23 | 10/08/2024 |
| 35.0.1 | 20 | 11/28/2024 |
| 34.0.2 | 21 | 10/02/2024 |
| 34.0.1 | 20 | 11/28/2024 |
| 33.1.1 | 29 | 02/05/2022 |
| 33.0.2 | 35 | 02/24/2022 |
| 33.0.1 | 19 | 11/28/2024 |
| 32.1.1 | 17 | 11/28/2024 |
| 32.0.2 | 20 | 11/28/2024 |
| 32.0.1 | 20 | 11/28/2024 |
| 31.0.3 | 17 | 11/28/2024 |
| 30.0.4 | 18 | 11/28/2024 |
| 30.0.1-beta-4 | 19 | 10/07/2024 |
| 30.0.1-beta-3 | 22 | 11/28/2024 |
| 30.0.1-beta-2 | 19 | 11/28/2024 |
| 30.0.1-beta-1 | 19 | 11/28/2024 |
| 29.0.2 | 18 | 11/28/2024 |
| 29.0.1 | 20 | 11/28/2024 |
| 28.4.4 | 19 | 11/28/2024 |
| 28.4.3 | 23 | 11/28/2024 |
| 28.4.2 | 22 | 11/28/2024 |
| 28.4.1 | 22 | 11/28/2024 |
| 28.3.2 | 18 | 11/20/2024 |
| 28.3.1 | 19 | 11/28/2024 |
| 28.2.1 | 20 | 11/28/2024 |
| 28.1.1 | 18 | 11/28/2024 |
| 28.0.3 | 19 | 11/28/2024 |
| 28.0.2 | 19 | 11/28/2024 |
| 28.0.1 | 19 | 11/28/2024 |
| 27.0.1 | 20 | 11/28/2024 |
| 26.0.2 | 20 | 11/28/2024 |
| 26.0.1 | 21 | 11/28/2024 |
| 25.0.4 | 18 | 11/28/2024 |
| 25.0.3 | 22 | 10/03/2024 |
| 25.0.2 | 20 | 11/28/2024 |
| 25.0.1 | 19 | 11/28/2024 |
| 24.3.1 | 20 | 11/28/2024 |
| 24.3.0 | 21 | 11/03/2024 |
| 24.2.0 | 19 | 11/28/2024 |
| 23.0.2 | 19 | 11/28/2024 |
| 22.3.2 | 22 | 10/05/2024 |
| 22.3.1 | 20 | 10/04/2024 |
| 22.2.1 | 20 | 11/28/2024 |
| 22.1.4 | 19 | 10/06/2024 |
| 22.1.3 | 20 | 10/04/2024 |
| 22.1.2 | 19 | 11/28/2024 |
| 22.1.1 | 20 | 10/04/2024 |
| 22.0.9 | 18 | 11/28/2024 |
| 22.0.8 | 19 | 11/28/2024 |
| 22.0.7 | 19 | 11/28/2024 |
| 22.0.6 | 15 | 10/05/2024 |
| 22.0.5 | 18 | 10/02/2024 |
| 22.0.3 | 18 | 11/28/2024 |
| 22.0.2 | 19 | 11/28/2024 |
| 22.0.1 | 20 | 10/03/2024 |
| 21.0.5 | 21 | 11/28/2024 |
| 21.0.4 | 20 | 10/01/2024 |
| 21.0.2 | 18 | 11/28/2024 |
| 20.0.2 | 23 | 10/01/2024 |
| 20.0.1 | 23 | 11/28/2024 |
| 19.0.2 | 20 | 10/07/2024 |
| 18.0.2 | 19 | 11/28/2024 |
| 18.0.1 | 21 | 11/28/2024 |
| 17.0.1 | 20 | 11/28/2024 |
| 16.0.3 | 20 | 11/28/2024 |
| 16.0.2 | 19 | 11/28/2024 |
| 15.0.7 | 19 | 11/28/2024 |
| 15.0.6 | 19 | 11/28/2024 |
| 15.0.5 | 21 | 11/28/2024 |
| 15.0.3 | 18 | 11/28/2024 |
| 15.0.1 | 21 | 11/28/2024 |
| 12.0.1 | 21 | 11/28/2024 |
| 11.0.5 | 25 | 11/28/2024 |
| 11.0.4 | 21 | 11/28/2024 |
| 11.0.3 | 21 | 11/28/2024 |
| 11.0.2 | 20 | 10/05/2024 |
| 11.0.1 | 20 | 10/08/2024 |
| 10.0.1 | 20 | 11/28/2024 |
| 9.0.2 | 21 | 10/05/2024 |
| 9.0.1 | 21 | 11/28/2024 |
| 8.0.4 | 16 | 11/28/2024 |
| 8.0.3 | 22 | 10/14/2024 |
| 8.0.2 | 20 | 11/28/2024 |
| 8.0.1 | 25 | 11/28/2024 |
| 8.0.1-beta-1 | 20 | 11/28/2024 |
| 7.1.7 | 21 | 11/28/2024 |
| 7.1.6 | 20 | 11/28/2024 |
| 7.1.5 | 24 | 10/02/2024 |
| 7.1.4 | 21 | 11/28/2024 |
| 7.1.3 | 20 | 11/28/2024 |
| 7.1.3-beta-1 | 17 | 10/05/2024 |
| 7.1.2 | 22 | 11/28/2024 |
| 7.1.2-beta-1 | 22 | 11/28/2024 |
| 7.1.1 | 22 | 10/06/2024 |
| 7.1.1-beta-1 | 19 | 11/28/2024 |
| 6.1.1 | 18 | 11/28/2024 |
| 6.1.1-beta-1 | 20 | 10/05/2024 |
| 5.1.1-beta-3 | 19 | 11/28/2024 |
| 5.1.1-beta-2 | 18 | 11/28/2024 |
| 5.1.1-beta-1 | 17 | 10/05/2024 |
| 5.0.1 | 20 | 11/28/2024 |
| 5.0.1-beta-2 | 16 | 10/02/2024 |
| 4.0.1 | 21 | 10/03/2024 |
| 4.0.1-beta-1 | 19 | 11/28/2024 |
| 3.0.6 | 20 | 10/04/2024 |
| 3.0.6-beta-1 | 16 | 11/28/2024 |
| 3.0.5 | 19 | 11/28/2024 |
| 3.0.5-beta-4 | 18 | 11/28/2024 |
| 3.0.5-beta-3 | 18 | 11/28/2024 |
| 3.0.5-beta-2 | 20 | 11/28/2024 |
| 3.0.4 | 20 | 10/03/2024 |
| 3.0.3 | 19 | 11/28/2024 |
| 3.0.2 | 19 | 11/28/2024 |
| 3.0.1 | 22 | 11/28/2024 |
| 3.0.0.3 | 19 | 11/28/2024 |
| 3.0.0.2 | 0 | 07/12/2015 |
| 3.0.0.1 | 0 | 07/12/2015 |
| 2.1.5.2 | 0 | 06/22/2015 |
| 2.1.5.1 | 0 | 06/11/2015 |
| 2.1.4.2 | 0 | 06/11/2015 |
| 2.1.4.1 | 19 | 10/12/2024 |
| 2.1.4 | 17 | 10/04/2024 |