TinyFn
v1.0.2500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
is_even
Check if a number is even.
| Parameter | Type | Description |
|---|---|---|
number * | integer | The number to check |
is_odd
Check if a number is odd.
| Parameter | Type | Description |
|---|---|---|
number * | integer | The number to check |
is_prime
Check if a number is prime.
| Parameter | Type | Description |
|---|---|---|
number * | integer | The number to check |
is_positive
Check if a number is positive.
| Parameter | Type | Description |
|---|---|---|
number * | number | The number to check |
is_negative
Check if a number is negative.
| Parameter | Type | Description |
|---|---|---|
number * | number | The number to check |
is_zero
Check if a number is zero.
| Parameter | Type | Description |
|---|---|---|
number * | number | The number to check |
is_integer
Check if a number is an integer.
| Parameter | Type | Description |
|---|---|---|
number * | number | The number to check |
is_divisible
Check if a number is divisible by another number.
| Parameter | Type | Description |
|---|---|---|
divisor * | integer | The divisor |
number * | integer | The number to check |
is_perfect_square
Check if a number is a perfect square.
| Parameter | Type | Description |
|---|---|---|
number * | integer | The number to check |
is_fibonacci
Check if a number is a Fibonacci number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | The number to check |
factorial
Calculate the factorial of a number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | The number (0-170) |
fibonacci
Get the nth Fibonacci number.
| Parameter | Type | Description |
|---|---|---|
n * | integer | Position in sequence (0-1000) |
gcd
Calculate the greatest common divisor.
| Parameter | Type | Description |
|---|---|---|
a * | integer | First number |
b * | integer | Second number |
lcm
Calculate the least common multiple.
| Parameter | Type | Description |
|---|---|---|
a * | integer | First number |
b * | integer | Second number |
absolute_value
Get the absolute value of a number.
| Parameter | Type | Description |
|---|---|---|
number * | number | The number |
square_root
Calculate the square root of a number.
| Parameter | Type | Description |
|---|---|---|
number * | number | The number |
power
Calculate base raised to the power of exponent.
| Parameter | Type | Description |
|---|---|---|
base * | number | The base |
exponent * | number | The exponent |
percentage
Calculate what percentage value is of total.
| Parameter | Type | Description |
|---|---|---|
total * | number | The total |
value * | number | The value |
average
Calculate the average of a list of numbers.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
round_number
Round a number to specified decimal places.
| Parameter | Type | Description |
|---|---|---|
number * | number | The number to round |
decimals | integer | Number of decimal places |
clamp
Clamp a number within a range.
| Parameter | Type | Description |
|---|---|---|
maximum * | number | Maximum value |
minimum * | number | Minimum value |
number * | number | The number to clamp |
distance
Calculate Euclidean distance between two points.
| Parameter | Type | Description |
|---|---|---|
x1 * | number | X coordinate of point 1 |
x2 * | number | X coordinate of point 2 |
y1 * | number | Y coordinate of point 1 |
y2 * | number | Y coordinate of point 2 |
sin
Calculate the sine of an angle.
| Parameter | Type | Description |
|---|---|---|
angle * | number | Angle in radians |
cos
Calculate the cosine of an angle.
| Parameter | Type | Description |
|---|---|---|
angle * | number | Angle in radians |
tan
Calculate the tangent of an angle.
| Parameter | Type | Description |
|---|---|---|
angle * | number | Angle in radians |
deg_to_rad
Convert degrees to radians.
| Parameter | Type | Description |
|---|---|---|
degrees * | number | Angle in degrees |
rad_to_deg
Convert radians to degrees.
| Parameter | Type | Description |
|---|---|---|
radians * | number | Angle in radians |
add
Add two or more numbers together.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers to add |
subtract
Subtract b from a.
| Parameter | Type | Description |
|---|---|---|
a * | number | First number |
b * | number | Number to subtract |
multiply
Multiply two or more numbers together.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers to multiply |
divide
Divide a by b.
| Parameter | Type | Description |
|---|---|---|
a * | number | Dividend (number to be divided) |
b * | number | Divisor (number to divide by) |
modulo
Calculate a modulo b (remainder of a divided by b).
| Parameter | Type | Description |
|---|---|---|
a * | number | Dividend |
b * | number | Divisor |
log
Calculate logarithm. Natural log if no base specified.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number (must be positive) |
base | Base (default: natural log) |
log10
Calculate base-10 logarithm.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number (must be positive) |
log2
Calculate base-2 logarithm.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number (must be positive) |
exp
Calculate e raised to the power of number.
| Parameter | Type | Description |
|---|---|---|
number * | number | Exponent |
floor
Round down to nearest integer.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number to floor |
ceil
Round up to nearest integer.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number to ceil |
minimum
Find the minimum value.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
maximum
Find the maximum value.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
sum_numbers
Calculate the sum of numbers.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
sign
Get the sign of a number (-1, 0, or 1).
| Parameter | Type | Description |
|---|---|---|
number * | number | Number to check |
truncate
Truncate to integer (remove decimal part).
| Parameter | Type | Description |
|---|---|---|
number * | number | Number to truncate |
hypotenuse
Calculate the hypotenuse of a right triangle.
| Parameter | Type | Description |
|---|---|---|
a * | number | Length of side a |
b * | number | Length of side b |
cube
Calculate the cube of a number.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number to cube |
cube_root
Calculate the cube root of a number.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number to find cube root of |
square
Calculate the square of a number.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number to square |
nth_root
Calculate the nth root of a number.
| Parameter | Type | Description |
|---|---|---|
n * | integer | Root degree |
number * | number | Number to find root of |
compare
Compare two numbers (e.g., is 0.9 greater than 0.11?).
| Parameter | Type | Description |
|---|---|---|
a * | number | First number |
b * | number | Second number |
compare_decimals
Compare decimal numbers with detailed explanation (handles 0.9 vs 0.11 correctly).
| Parameter | Type | Description |
|---|---|---|
a * | string | First decimal number as string |
b * | string | Second decimal number as string |
rank_numbers
Rank a list of numbers from largest to smallest (or vice versa).
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers to rank |
order | string | Order: 'asc' (smallest first) or 'desc' (largest first) |
is_between
Check if a number is between two bounds.
| Parameter | Type | Description |
|---|---|---|
lower * | number | Lower bound |
number * | number | Number to check |
upper * | number | Upper bound |
inclusive | boolean | Include bounds in range |
reverse_string
Reverse a string.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to reverse |
uppercase
Convert text to uppercase.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to uppercase |
lowercase
Convert text to lowercase.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to lowercase |
capitalize
Capitalize the first letter of each word.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to capitalize |
title_case
Convert text to title case.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to title case |
sentence_case
Convert text to sentence case.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to sentence case |
camel_case
Convert text to camelCase.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to convert |
snake_case
Convert text to snake_case.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to convert |
kebab_case
Convert text to kebab-case.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to convert |
pascal_case
Convert text to PascalCase.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to convert |
string_length
Get the length of a string.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to measure |
word_count
Count words in text.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to count words in |
trim
Trim whitespace from text.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to trim |
truncate_2
Truncate text to a specified length.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to truncate |
length | integer | Maximum length |
suffix | string | Suffix to add if truncated |
pad
Pad text to a specified length.
| Parameter | Type | Description |
|---|---|---|
length * | integer | Target length |
text * | string | The text to pad |
char | string | Padding character |
side | string | Side to pad (left, right, both) |
repeat
Repeat text a specified number of times.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to repeat |
times * | integer | Number of repetitions |
separator | string | Separator between repetitions |
replace
Replace occurrences in text.
| Parameter | Type | Description |
|---|---|---|
search * | string | Text to search for |
text * | string | The original text |
replacement | string | Replacement text |
contains
Check if text contains a substring.
| Parameter | Type | Description |
|---|---|---|
search * | string | The text to search for |
text * | string | The text to search in |
case_sensitive | boolean | Case sensitive search |
starts_with
Check if text starts with a prefix.
| Parameter | Type | Description |
|---|---|---|
prefix * | string | The prefix to look for |
text * | string | The text to check |
ends_with
Check if text ends with a suffix.
| Parameter | Type | Description |
|---|---|---|
suffix * | string | The suffix to look for |
text * | string | The text to check |
split
Split text by delimiter.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to split |
delimiter | string | Delimiter to split by |
join
Join items with a delimiter.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items to join |
delimiter | string | Delimiter to join with |
slug
Convert text to URL-friendly slug.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to slugify |
is_palindrome
Check if text is a palindrome.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to check |
ignore_case | boolean | Ignore case |
ignore_spaces | boolean | Ignore spaces |
count_char
Count occurrences of a character (e.g., how many 'r' in 'strawberry').
| Parameter | Type | Description |
|---|---|---|
char * | string | Character to count |
text * | string | The text to search in |
case_sensitive | boolean | Case sensitive counting |
count_substring
Count occurrences of a substring.
| Parameter | Type | Description |
|---|---|---|
substring * | string | Substring to count |
text * | string | The text to search in |
case_sensitive | boolean | Case sensitive counting |
overlapping | boolean | Count overlapping occurrences |
count_all_chars
Count occurrences of each character in text.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to analyze |
remove_whitespace
Remove all whitespace from text.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to process |
normalize_whitespace
Normalize whitespace (multiple spaces to single).
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to normalize |
is_empty
Check if text is empty or whitespace only.
| Parameter | Type | Description |
|---|---|---|
text | string | The text to check |
extract_numbers
Extract all numbers from text.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to extract from |
extract_emails
Extract all email addresses from text.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to extract from |
extract_urls
Extract all URLs from text.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to extract from |
celsius_to_fahrenheit
Convert Celsius to Fahrenheit.
| Parameter | Type | Description |
|---|---|---|
celsius * | number | Temperature in Celsius |
fahrenheit_to_celsius
Convert Fahrenheit to Celsius.
| Parameter | Type | Description |
|---|---|---|
fahrenheit * | number | Temperature in Fahrenheit |
celsius_to_kelvin
Convert Celsius to Kelvin.
| Parameter | Type | Description |
|---|---|---|
celsius * | number | Temperature in Celsius |
kelvin_to_celsius
Convert Kelvin to Celsius.
| Parameter | Type | Description |
|---|---|---|
kelvin * | number | Temperature in Kelvin |
meters_to_feet
Convert meters to feet.
| Parameter | Type | Description |
|---|---|---|
meters * | number | Length in meters |
feet_to_meters
Convert feet to meters.
| Parameter | Type | Description |
|---|---|---|
feet * | number | Length in feet |
kilometers_to_miles
Convert kilometers to miles.
| Parameter | Type | Description |
|---|---|---|
kilometers * | number | Length in kilometers |
miles_to_kilometers
Convert miles to kilometers.
| Parameter | Type | Description |
|---|---|---|
miles * | number | Length in miles |
inches_to_centimeters
Convert inches to centimeters.
| Parameter | Type | Description |
|---|---|---|
inches * | number | Length in inches |
centimeters_to_inches
Convert centimeters to inches.
| Parameter | Type | Description |
|---|---|---|
centimeters * | number | Length in centimeters |
kilograms_to_pounds
Convert kilograms to pounds.
| Parameter | Type | Description |
|---|---|---|
kilograms * | number | Weight in kilograms |
pounds_to_kilograms
Convert pounds to kilograms.
| Parameter | Type | Description |
|---|---|---|
pounds * | number | Weight in pounds |
ounces_to_grams
Convert ounces to grams.
| Parameter | Type | Description |
|---|---|---|
ounces * | number | Weight in ounces |
grams_to_ounces
Convert grams to ounces.
| Parameter | Type | Description |
|---|---|---|
grams * | number | Weight in grams |
stone_to_kilograms
Convert stone to kilograms.
| Parameter | Type | Description |
|---|---|---|
stone * | number | Weight in stone |
liters_to_gallons_us
Convert liters to US gallons.
| Parameter | Type | Description |
|---|---|---|
liters * | number | Volume in liters |
gallons_us_to_liters
Convert US gallons to liters.
| Parameter | Type | Description |
|---|---|---|
gallons * | number | Volume in US gallons |
liters_to_gallons_uk
Convert liters to UK gallons. Because a UK gallon isn't a US gallon.
| Parameter | Type | Description |
|---|---|---|
liters * | number | Volume in liters |
gallons_uk_to_liters
Convert UK gallons to liters.
| Parameter | Type | Description |
|---|---|---|
gallons * | number | Volume in UK gallons |
milliliters_to_fluid_ounces
Convert milliliters to US fluid ounces.
| Parameter | Type | Description |
|---|---|---|
milliliters * | number | Volume in milliliters |
cups_to_milliliters
Convert US cups to milliliters.
| Parameter | Type | Description |
|---|---|---|
cups * | number | Volume in cups (US) |
milliliters_to_cups
Convert milliliters to US cups.
| Parameter | Type | Description |
|---|---|---|
milliliters * | number | Volume in milliliters |
square_meters_to_square_feet
Convert square meters to square feet.
| Parameter | Type | Description |
|---|---|---|
square_meters * | number | Area in square meters |
square_feet_to_square_meters
Convert square feet to square meters.
| Parameter | Type | Description |
|---|---|---|
square_feet * | number | Area in square feet |
acres_to_hectares
Convert acres to hectares.
| Parameter | Type | Description |
|---|---|---|
acres * | number | Area in acres |
mph_to_kph
Convert miles per hour to kilometers per hour.
| Parameter | Type | Description |
|---|---|---|
mph * | number | Speed in miles per hour |
kph_to_mph
Convert kilometers per hour to miles per hour.
| Parameter | Type | Description |
|---|---|---|
kph * | number | Speed in kilometers per hour |
meters_per_second_to_mph
Convert meters per second to miles per hour.
| Parameter | Type | Description |
|---|---|---|
mps * | number | Speed in meters per second |
knots_to_kph
Convert knots to kilometers per hour.
| Parameter | Type | Description |
|---|---|---|
knots * | number | Speed in knots |
bytes_to_human
Convert bytes to human-readable format.
| Parameter | Type | Description |
|---|---|---|
bytes_val * | integer | Size in bytes |
kilobytes_to_megabytes
Convert kilobytes to megabytes.
| Parameter | Type | Description |
|---|---|---|
kilobytes * | number | Size in kilobytes |
megabytes_to_gigabytes
Convert megabytes to gigabytes.
| Parameter | Type | Description |
|---|---|---|
megabytes * | number | Size in megabytes |
decimal_to_binary
Convert decimal to binary.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Decimal number |
binary_to_decimal
Convert binary to decimal.
| Parameter | Type | Description |
|---|---|---|
binary * | string | Binary number string |
decimal_to_hexadecimal
Convert decimal to hexadecimal.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Decimal number |
hexadecimal_to_decimal
Convert hexadecimal to decimal.
| Parameter | Type | Description |
|---|---|---|
hexadecimal * | string | Hexadecimal number string |
decimal_to_octal
Convert decimal to octal.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Decimal number |
hex_to_rgb
Convert hex color to RGB.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color (e.g., #FF5733 or FF5733) |
rgb_to_hex
Convert RGB to hex color.
| Parameter | Type | Description |
|---|---|---|
b * | integer | Blue (0-255) |
g * | integer | Green (0-255) |
r * | integer | Red (0-255) |
hours_to_minutes
Convert hours to minutes.
| Parameter | Type | Description |
|---|---|---|
hours * | number | Time in hours |
minutes_to_seconds
Convert minutes to seconds.
| Parameter | Type | Description |
|---|---|---|
minutes * | number | Time in minutes |
seconds_to_hms
Convert seconds to hours:minutes:seconds.
| Parameter | Type | Description |
|---|---|---|
seconds * | integer | Time in seconds |
generate_uuid
Generate UUID(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of UUIDs to generate |
version | integer | UUID version (1 or 4) |
generate_uuid_v7
Generate UUID v7 (time-ordered).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of UUIDs to generate |
random_number
Generate random integer(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | How many numbers to generate |
max_val | integer | Maximum value (inclusive) |
min_val | integer | Minimum value (inclusive) |
random_float
Generate random float(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | How many numbers to generate |
decimals | integer | Decimal places |
max_val | number | Maximum value |
min_val | number | Minimum value |
random_string
Generate random string(s).
| Parameter | Type | Description |
|---|---|---|
charset | string | Character set: alphanumeric, alpha, numeric, hex, base64 |
count | integer | How many strings to generate |
length | integer | Length of string |
generate_password
Generate secure password(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | How many passwords to generate |
exclude_ambiguous | boolean | Exclude ambiguous characters (0O1lI) |
length | integer | Password length |
lowercase | boolean | Include lowercase letters |
numbers | boolean | Include numbers |
symbols | boolean | Include symbols |
uppercase | boolean | Include uppercase letters |
generate_token
Generate cryptographically secure token.
| Parameter | Type | Description |
|---|---|---|
format | string | Format: hex, base64, urlsafe |
length | integer | Token length in bytes |
generate_hash
Generate hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
algorithm | string | Algorithm: md5, sha1, sha256, sha512 |
generate_lorem
Generate lorem ipsum text using Faker.
| Parameter | Type | Description |
|---|---|---|
paragraphs | integer | Number of paragraphs |
sentences_per_paragraph | integer | Sentences per paragraph |
generate_color
Generate random color(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of colors |
format | string | Format: hex, rgb, hsl |
roll_dice
Roll dice.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of dice to roll |
sides | integer | Number of sides |
flip_coin
Flip a coin.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of flips |
shuffle_list
Shuffle a list of items.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items to shuffle |
pick_random
Pick random item(s) from a list.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items to pick from |
count | integer | Number of items to pick |
generate_sequence
Generate a number sequence.
| Parameter | Type | Description |
|---|---|---|
end | integer | End value |
start | integer | Start value |
step | integer | Step value |
validate_email
Validate an email address.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address to validate |
validate_url
Validate a URL.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to validate |
validate_phone
Validate a phone number.
| Parameter | Type | Description |
|---|---|---|
phone * | string | Phone number to validate |
country | string | Country code for validation |
validate_credit_card
Validate a credit card number using Luhn algorithm.
| Parameter | Type | Description |
|---|---|---|
number * | string | Credit card number |
validate_uuid
Validate a UUID.
| Parameter | Type | Description |
|---|---|---|
uuid_str * | string | UUID to validate |
validate_ip
Validate an IP address (v4 or v6).
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to validate |
validate_mac
Validate a MAC address.
| Parameter | Type | Description |
|---|---|---|
mac * | string | MAC address to validate |
validate_json
Validate JSON syntax.
| Parameter | Type | Description |
|---|---|---|
json_str * | string | JSON string to validate |
validate_hex
Validate a hexadecimal string.
| Parameter | Type | Description |
|---|---|---|
hex_str * | string | Hex string to validate |
validate_base64
Validate a base64 string.
| Parameter | Type | Description |
|---|---|---|
base64_str * | string | Base64 string to validate |
validate_alphanumeric
Check if text is alphanumeric.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to validate |
validate_password_strength
Check password strength.
| Parameter | Type | Description |
|---|---|---|
password * | string | Password to check |
validate_date
Validate a date string.
| Parameter | Type | Description |
|---|---|---|
date_str * | string | Date string to validate |
format | string | Expected date format |
validate_domain
Validate a domain name.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain name to validate |
validate_semver
Validate a semantic version string.
| Parameter | Type | Description |
|---|---|---|
version * | string | Semantic version to validate |
get_now
Get current date and time.
| Parameter | Type | Description |
|---|---|---|
tz | string | Timezone (UTC, America/New_York, etc.) |
convert_timestamp
Convert Unix timestamp to date.
| Parameter | Type | Description |
|---|---|---|
timestamp * | integer | Unix timestamp (seconds) |
convert_timestamp_ms
Convert Unix timestamp (milliseconds) to date.
| Parameter | Type | Description |
|---|---|---|
timestamp_ms * | integer | Unix timestamp (milliseconds) |
date_to_timestamp
Convert date to Unix timestamp.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date string (YYYY-MM-DD or ISO format) |
format_date
Format a date string.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date string (ISO format) |
format | string | Output format |
parse_date
Parse a date string.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date string to parse |
format | string | Input format |
add_time
Add time to a date.
| Parameter | Type | Description |
|---|---|---|
date * | string | Start date (ISO format) |
days | integer | Days to add |
hours | integer | Hours to add |
minutes | integer | Minutes to add |
seconds | integer | Seconds to add |
weeks | integer | Weeks to add |
subtract_time
Subtract time from a date.
| Parameter | Type | Description |
|---|---|---|
date * | string | Start date (ISO format) |
days | integer | Days to subtract |
hours | integer | Hours to subtract |
minutes | integer | Minutes to subtract |
seconds | integer | Seconds to subtract |
weeks | integer | Weeks to subtract |
date_diff
Calculate difference between two dates.
| Parameter | Type | Description |
|---|---|---|
date1 * | string | First date (ISO format) |
date2 * | string | Second date (ISO format) |
is_leap_year
Check if a year is a leap year.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year to check |
days_in_month
Get the number of days in a month.
| Parameter | Type | Description |
|---|---|---|
month * | integer | Month (1-12) |
year * | integer | Year |
week_number
Get the ISO week number of a date.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date (YYYY-MM-DD) |
day_of_year
Get the day of year for a date.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date (YYYY-MM-DD) |
is_weekend
Check if a date is a weekend.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date (YYYY-MM-DD) |
calculate_age
Calculate age from birthdate.
| Parameter | Type | Description |
|---|---|---|
birthdate * | string | Birth date (YYYY-MM-DD) |
relative_time
Get relative time description (e.g., '2 days ago').
| Parameter | Type | Description |
|---|---|---|
date * | string | Date (ISO format) |
current_time
Get current time in specified timezone.
| Parameter | Type | Description |
|---|---|---|
timezone_name | string | Timezone name (e.g., UTC, EST, PST, JST) |
convert_timezone
Convert datetime between timezones.
| Parameter | Type | Description |
|---|---|---|
datetime_str * | string | Datetime in ISO format |
from_tz | string | Source timezone |
to_tz | string | Target timezone |
time_difference
Calculate difference between two datetimes.
| Parameter | Type | Description |
|---|---|---|
datetime1 * | string | First datetime in ISO format |
datetime2 * | string | Second datetime in ISO format |
add_time_2
Add time to a datetime.
| Parameter | Type | Description |
|---|---|---|
datetime_str * | string | Datetime in ISO format |
days | integer | Days to add |
hours | integer | Hours to add |
minutes | integer | Minutes to add |
seconds | integer | Seconds to add |
subtract_time_2
Subtract time from a datetime.
| Parameter | Type | Description |
|---|---|---|
datetime_str * | string | Datetime in ISO format |
days | integer | Days to subtract |
hours | integer | Hours to subtract |
minutes | integer | Minutes to subtract |
seconds | integer | Seconds to subtract |
start_of_period
Get the start of a time period.
| Parameter | Type | Description |
|---|---|---|
datetime_str * | string | Datetime in ISO format |
period | string | Period: year, month, week, day, hour |
end_of_period
Get the end of a time period.
| Parameter | Type | Description |
|---|---|---|
datetime_str * | string | Datetime in ISO format |
period | string | Period: year, month, week, day, hour |
is_leap_year_2
Check if a year is a leap year.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year to check |
days_in_month_2
Get the number of days in a month.
| Parameter | Type | Description |
|---|---|---|
month * | integer | Month (1-12) |
year * | integer | Year |
week_number_2
Get the ISO week number for a date.
| Parameter | Type | Description |
|---|---|---|
datetime_str * | string | Datetime in ISO format |
get_quarter
Get the quarter for a date.
| Parameter | Type | Description |
|---|---|---|
datetime_str * | string | Datetime in ISO format |
business_days
Count business days between two dates (excluding weekends).
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date (YYYY-MM-DD) |
start_date * | string | Start date (YYYY-MM-DD) |
add_business_days
Add business days to a date.
| Parameter | Type | Description |
|---|---|---|
days * | integer | Business days to add |
start_date * | string | Start date (YYYY-MM-DD) |
calculate_age_2
Calculate age from birthdate.
| Parameter | Type | Description |
|---|---|---|
birthdate * | string | Birthdate (YYYY-MM-DD) |
as_of | string | Calculate age as of date (YYYY-MM-DD) |
list_timezones
List all available timezone abbreviations.
unix_to_datetime
Convert Unix timestamp to datetime.
| Parameter | Type | Description |
|---|---|---|
timestamp * | integer | Unix timestamp |
timezone_name | string | Timezone for output |
datetime_to_unix
Convert datetime to Unix timestamp.
| Parameter | Type | Description |
|---|---|---|
datetime_str * | string | Datetime in ISO format |
base64_encode
Encode text to base64. Properly handles Unicode.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to encode |
base64_decode
Decode base64 to text.
| Parameter | Type | Description |
|---|---|---|
encoded * | string | Base64 string to decode |
url_encode
URL encode text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to URL encode |
url_decode
URL decode text.
| Parameter | Type | Description |
|---|---|---|
encoded * | string | URL encoded string to decode |
html_encode
HTML encode text (escape special characters).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to HTML encode |
html_decode
HTML decode text (unescape special characters).
| Parameter | Type | Description |
|---|---|---|
encoded * | string | HTML encoded string to decode |
hex_encode
Encode text to hexadecimal.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hex encode |
hex_decode
Decode hexadecimal to text.
| Parameter | Type | Description |
|---|---|---|
encoded * | string | Hex string to decode |
binary_encode
Encode text to binary.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to binary encode |
binary_decode
Decode binary to text.
| Parameter | Type | Description |
|---|---|---|
binary * | string | Binary string to decode |
ascii_encode
Get ASCII codes for text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to ASCII encode |
ascii_decode
Convert ASCII codes to text.
| Parameter | Type | Description |
|---|---|---|
codes * | string | Space-separated ASCII codes |
rot13
Apply ROT13 cipher (encoding and decoding are the same operation).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to ROT13 encode/decode |
morse_encode
Encode text to Morse code.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to encode to Morse code |
morse_decode
Decode Morse code to text.
| Parameter | Type | Description |
|---|---|---|
morse * | string | Morse code to decode |
json_minify
Minify JSON (remove whitespace).
| Parameter | Type | Description |
|---|---|---|
json_str * | string | JSON to minify |
json_prettify
Prettify JSON (format with indentation).
| Parameter | Type | Description |
|---|---|---|
json_str * | string | JSON to prettify |
indent | integer | Indentation spaces |
jwt_decode
Decode JWT token (without signature verification).
| Parameter | Type | Description |
|---|---|---|
token * | string | JWT token to decode (without verification) |
punycode_encode
Encode Unicode to Punycode (for internationalized domain names).
| Parameter | Type | Description |
|---|---|---|
text * | string | Unicode text to encode |
punycode_decode
Decode Punycode to Unicode.
| Parameter | Type | Description |
|---|---|---|
encoded * | string | Punycode to decode |
hash_md5
Generate MD5 hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
hash_sha1
Generate SHA-1 hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
hash_sha256
Generate SHA-256 hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
hash_sha384
Generate SHA-384 hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
hash_sha512
Generate SHA-512 hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
hash_sha3_256
Generate SHA3-256 hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
hash_sha3_512
Generate SHA3-512 hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
hash_blake2b
Generate BLAKE2b hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
digest_size | integer | Digest size in bytes |
hash_blake2s
Generate BLAKE2s hash of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
digest_size | integer | Digest size in bytes |
hmac_sha256
Generate HMAC-SHA256.
| Parameter | Type | Description |
|---|---|---|
key * | string | Secret key |
message * | string | Message to authenticate |
hmac_sha512
Generate HMAC-SHA512.
| Parameter | Type | Description |
|---|---|---|
key * | string | Secret key |
message * | string | Message to authenticate |
hmac_md5
Generate HMAC-MD5.
| Parameter | Type | Description |
|---|---|---|
key * | string | Secret key |
message * | string | Message to authenticate |
compare_hashes
Compare two hashes in constant time (timing-safe).
| Parameter | Type | Description |
|---|---|---|
hash1 * | string | First hash |
hash2 * | string | Second hash |
hash_all
Generate hashes using multiple algorithms at once.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
hash_crc32
Calculate CRC32 checksum.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to calculate CRC32 |
hash_adler32
Calculate Adler-32 checksum.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to calculate Adler-32 |
identify_hash
Identify the possible algorithm of a hash based on its format.
| Parameter | Type | Description |
|---|---|---|
hash_string * | string | Hash string to identify |
file_checksum_guide
Get command-line instructions for file checksums.
| Parameter | Type | Description |
|---|---|---|
algorithm | string | Algorithm: md5, sha1, sha256, sha512 |
generate_hmac
Generate HMAC signature.
| Parameter | Type | Description |
|---|---|---|
key * | string | Secret key |
message * | string | Message to sign |
algorithm | string | Hash algorithm: md5, sha1, sha256, sha512 |
md5_checksum
Generate MD5 checksum.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
sha1_checksum
Generate SHA1 checksum.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
sha256_checksum
Generate SHA256 checksum.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
sha512_checksum
Generate SHA512 checksum.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash |
password_entropy
Calculate password entropy (bits of randomness).
| Parameter | Type | Description |
|---|---|---|
password * | string | Password to analyze |
random_bytes
Generate cryptographically secure random bytes.
| Parameter | Type | Description |
|---|---|---|
encoding | string | Output encoding: hex, base64 |
length | integer | Number of bytes |
constant_time_compare
Compare two strings in constant time (timing-safe).
| Parameter | Type | Description |
|---|---|---|
a * | string | First string |
b * | string | Second string |
verify_hash
Verify a hash matches the text.
| Parameter | Type | Description |
|---|---|---|
hash_value * | string | Hash to verify |
text * | string | Original text |
algorithm | string | Algorithm used |
crc32_checksum
Calculate CRC32 checksum.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to checksum |
adler32_checksum
Calculate Adler-32 checksum.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to checksum |
analyze_password
Analyze password strength and characteristics.
| Parameter | Type | Description |
|---|---|---|
password * | string | Password to analyze |
generate_password_2
Generate a secure random password.
| Parameter | Type | Description |
|---|---|---|
digits | boolean | Include digits |
exclude_ambiguous | boolean | Exclude ambiguous chars (0O1lI) |
exclude_chars | string | Additional characters to exclude |
length | integer | Password length |
lowercase | boolean | Include lowercase letters |
special | boolean | Include special characters |
uppercase | boolean | Include uppercase letters |
generate_passphrase
Generate a passphrase from random words.
| Parameter | Type | Description |
|---|---|---|
capitalize | boolean | Capitalize each word |
include_number | boolean | Include a random number |
separator | string | Word separator |
words | integer | Number of words |
generate_pin
Generate a random PIN.
| Parameter | Type | Description |
|---|---|---|
length | integer | PIN length |
estimate_hash_time
Estimate time to crack a password using brute force.
| Parameter | Type | Description |
|---|---|---|
password * | string | Password to estimate crack time for |
is_common_password
Check if password is in common password list.
| Parameter | Type | Description |
|---|---|---|
password * | string | Password to check |
suggest_improvements
Suggest improvements for a password.
| Parameter | Type | Description |
|---|---|---|
password * | string | Password to improve |
leetspeak_password
Convert a password to leetspeak (for demonstration, not security).
| Parameter | Type | Description |
|---|---|---|
password * | string | Password to convert to leetspeak |
level | integer | Leetspeak intensity (1-3) |
generate_memorable
Generate a memorable password based on a pattern.
| Parameter | Type | Description |
|---|---|---|
pattern | string | Pattern: c=consonant, v=vowel, d=digit, s=symbol |
validate_ip_2
Validate if a string is a valid IP address.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to validate |
ip_info
Get detailed information about an IP address.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to analyze |
ip_to_integer
Convert IP address to integer.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to convert |
integer_to_ip
Convert integer to IP address.
| Parameter | Type | Description |
|---|---|---|
integer * | integer | Integer to convert to IP |
version | integer | IP version (4 or 6) |
network_info
Get information about a network.
| Parameter | Type | Description |
|---|---|---|
network * | string | Network in CIDR notation (e.g., 192.168.1.0/24) |
ip_in_network
Check if an IP address is within a network.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to check |
network * | string | Network in CIDR notation |
subnet_calculator
Calculate subnets from a network.
| Parameter | Type | Description |
|---|---|---|
network * | string | Network in CIDR notation |
new_prefix * | integer | New prefix length for subnets |
supernet_calculator
Calculate the supernet that contains all given networks.
| Parameter | Type | Description |
|---|---|---|
networks * | string | Comma-separated networks in CIDR notation |
range_to_cidr
Convert an IP range to CIDR notation.
| Parameter | Type | Description |
|---|---|---|
end_ip * | string | End IP address |
start_ip * | string | Start IP address |
expand_cidr
Expand a CIDR to list of individual IPs.
| Parameter | Type | Description |
|---|---|---|
network * | string | Network in CIDR notation |
limit | integer | Maximum IPs to return |
is_private_ip
Check if an IP address is private (RFC 1918 for IPv4).
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to check |
ipv4_to_ipv6
Convert IPv4 address to IPv6 mapped address.
| Parameter | Type | Description |
|---|---|---|
ipv4 * | string | IPv4 address to convert |
ipv6_to_ipv4
Extract IPv4 address from IPv6 mapped address.
| Parameter | Type | Description |
|---|---|---|
ipv6 * | string | IPv6 mapped address to convert |
ip_to_binary
Convert IP address to binary representation.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to convert |
netmask_to_cidr
Convert subnet mask to CIDR prefix length.
| Parameter | Type | Description |
|---|---|---|
netmask * | string | Netmask (e.g., 255.255.255.0) |
cidr_to_netmask
Convert CIDR prefix length to subnet mask.
| Parameter | Type | Description |
|---|---|---|
prefix * | integer | CIDR prefix length (0-32) |
validate_json_2
Validate if a string is valid JSON.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON string to validate |
prettify_json
Prettify (format) a JSON string.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON string to prettify |
indent | integer | Indentation spaces |
sort_keys | boolean | Sort keys alphabetically |
minify_json
Minify (compress) a JSON string.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON string to minify |
get_keys
Get all keys from a JSON object.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON object string |
get_values
Get all values from a JSON object.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON object string |
get_json_path
Extract a value from JSON using a path expression.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON string |
path * | string | Path to extract (e.g., 'user.address.city' or 'items[0].name') |
flatten_json
Flatten a nested JSON object.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON string to flatten |
separator | string | Key separator |
unflatten_json
Unflatten a flat JSON object back to nested structure.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | Flattened JSON string |
separator | string | Key separator |
json_diff
Compare two JSON objects and find differences.
| Parameter | Type | Description |
|---|---|---|
json1 * | string | First JSON string |
json2 * | string | Second JSON string |
merge_json
Merge two JSON objects.
| Parameter | Type | Description |
|---|---|---|
json1 * | string | Base JSON object |
json2 * | string | JSON object to merge |
deep | boolean | Deep merge nested objects |
json_stats
Get statistics about a JSON structure.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON string to analyze |
get_json_type
Get the type of a JSON value.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON string |
json_to_query_string
Convert a JSON object to URL query string.
| Parameter | Type | Description |
|---|---|---|
json_string * | string | JSON object to convert |
query_string_to_json
Convert a URL query string to JSON object.
| Parameter | Type | Description |
|---|---|---|
query_string * | string | Query string to convert (without ?) |
readability_score
Calculate readability scores (Flesch-Kincaid, etc.).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to analyze |
extract_keywords
Extract keywords from text based on frequency.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to extract keywords from |
top_n | integer | Number of keywords |
text_similarity
Calculate similarity between two texts (Jaccard similarity).
| Parameter | Type | Description |
|---|---|---|
text1 * | string | First text |
text2 * | string | Second text |
levenshtein_distance
Calculate Levenshtein (edit) distance between two strings.
| Parameter | Type | Description |
|---|---|---|
text1 * | string | First string |
text2 * | string | Second string |
soundex
Generate Soundex phonetic encoding.
| Parameter | Type | Description |
|---|---|---|
text * | string | Word to encode |
metaphone
Generate Metaphone phonetic encoding.
| Parameter | Type | Description |
|---|---|---|
text * | string | Word to encode |
generate_ngrams
Generate n-grams from text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to generate n-grams from |
n | integer | N-gram size |
basic_sentiment
Basic sentiment analysis using word lists.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to analyze |
generate_acronym
Generate acronym from text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to create acronym from |
get_initials
Get initials from a name.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name to get initials from |
separator | string | Separator between initials |
mask_text
Mask text, keeping only start/end characters visible.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to mask |
end | integer | Characters to keep at end |
mask_char | string | Masking character |
start | integer | Characters to keep at start |
lorem_words
Generate lorem ipsum words.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of words |
smart_title_case
Smart title case (handles articles, prepositions).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
remove_duplicate_words
Remove consecutive duplicate words.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text with potential duplicate words |
slugify
Convert text to URL-friendly slug.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert to slug |
lowercase | boolean | Convert to lowercase |
max_length | integer | Maximum slug length |
separator | string | Word separator |
deslugify
Convert a slug back to readable text.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Slug to convert back to text |
capitalize | boolean | Capitalize words |
separator | string | Word separator in slug |
is_valid_slug
Check if a string is a valid URL slug.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Slug to validate |
url_encode_2
URL encode a string.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to URL encode |
safe | string | Characters to not encode |
url_decode_2
URL decode a string.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to URL decode |
parse_url
Parse a URL into its components.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to parse |
build_url
Build a URL from components.
| Parameter | Type | Description |
|---|---|---|
base * | string | Base URL |
params | string | Query params as key=value&key2=value2 |
path | string | Path to append |
normalize_url
Normalize a URL to a canonical form.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to normalize |
lowercase_host | boolean | Lowercase hostname |
remove_default_port | boolean | Remove default port (80/443) |
remove_trailing_slash | boolean | Remove trailing slash from path |
sort_params | boolean | Sort query parameters |
extract_domain
Extract domain from a URL.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to extract domain from |
include_subdomain | boolean | Include subdomain in result |
is_valid_url
Validate if a string is a valid URL.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to validate |
require_protocol | boolean | Require http/https |
join_path
Join path parts safely.
| Parameter | Type | Description |
|---|---|---|
parts * | string | Path parts separated by comma |
separator | string | Path separator |
add_query_param
Add a query parameter to a URL.
| Parameter | Type | Description |
|---|---|---|
key * | string | Parameter key |
url * | string | URL to modify |
value * | string | Parameter value |
remove_query_param
Remove a query parameter from a URL.
| Parameter | Type | Description |
|---|---|---|
key * | string | Parameter key to remove |
url * | string | URL to modify |
filename_safe
Convert a string to a safe filename.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Filename to sanitize |
max_length | integer | Maximum filename length |
replacement | string | Character to replace invalid chars with |
to_camel_case
Convert text to camelCase.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_pascal_case
Convert text to PascalCase.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_snake_case
Convert text to snake_case.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_screaming_snake_case
Convert text to SCREAMING_SNAKE_CASE.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_kebab_case
Convert text to kebab-case.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_train_case
Convert text to Train-Case.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_title_case
Convert text to Title Case.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_sentence_case
Convert text to Sentence case.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_upper_case
Convert text to UPPERCASE.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_lower_case
Convert text to lowercase.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
swap_case
Swap case of each character.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
capitalize_text
Capitalize first letter only.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to capitalize |
to_dot_case
Convert text to dot.case.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_path_case
Convert text to path/case.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_constant_case
Convert text to CONSTANT_CASE (alias for screaming snake).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_header_case
Convert text to Header-Case (HTTP header style).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
to_alternating_case
Convert text to aLtErNaTiNg case.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
start_upper | boolean | Start with uppercase |
inverse_case
Inverse the case of each character (same as swap).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
detect_case
Detect the case style of text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to analyze |
convert_all_cases
Convert text to all case formats at once.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to convert |
format_number
Format a number with locale-specific separators.
| Parameter | Type | Description |
|---|---|---|
number * | number | Number to format |
decimals | integer | Decimal places |
locale | string | Locale (en-US, de-DE, fr-FR, etc.) |
format_currency
Format an amount as currency.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount to format |
currency | string | Currency code (USD, EUR, GBP, etc.) |
locale | string | Locale for formatting |
format_percentage
Format a number as a percentage.
| Parameter | Type | Description |
|---|---|---|
value * | number | Value to format as percentage |
decimals | integer | Decimal places |
multiply | boolean | Multiply by 100 (0.5 -> 50%) |
format_ordinal
Convert a number to its ordinal form (1st, 2nd, 3rd, etc.).
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to convert to ordinal |
number_to_words
Convert a number to words.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to convert |
number_to_roman
Convert a number to Roman numerals.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to convert (1-3999) |
roman_to_number
Convert Roman numerals to a number.
| Parameter | Type | Description |
|---|---|---|
roman * | string | Roman numeral to convert |
format_bytes
Format bytes to human-readable size.
| Parameter | Type | Description |
|---|---|---|
bytes_value * | integer | Size in bytes |
binary | boolean | Use binary (1024) or decimal (1000) units |
format_phone
Format a phone number according to country conventions.
| Parameter | Type | Description |
|---|---|---|
number * | string | Phone number to format |
country | string | Country code (US, UK, DE, FR, etc.) |
format_credit_card
Format a credit card number with spaces.
| Parameter | Type | Description |
|---|---|---|
number * | string | Credit card number |
format_ssn
Format a Social Security Number.
| Parameter | Type | Description |
|---|---|---|
number * | string | SSN to format |
format_duration
Format seconds as duration.
| Parameter | Type | Description |
|---|---|---|
seconds * | integer | Duration in seconds |
verbose | boolean | Use verbose format (1 hour 2 minutes) |
format_relative_time
Format seconds as relative time (e.g., '2 hours ago', 'in 3 days').
| Parameter | Type | Description |
|---|---|---|
seconds * | integer | Seconds from now (positive = future, negative = past) |
format_truncate
Truncate text to a maximum length.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to truncate |
length | integer | Maximum length |
suffix | string | Suffix to add when truncated |
format_list
Format a list of items with proper grammar.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
conjunction | string | Conjunction to use (and, or) |
oxford_comma | boolean | Use Oxford comma |
hex_to_hsl
Convert hex color to HSL.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color (e.g., #FF5733 or FF5733) |
hsl_to_hex
Convert HSL to hex color.
| Parameter | Type | Description |
|---|---|---|
h * | integer | Hue (0-360) |
l * | integer | Lightness (0-100) |
s * | integer | Saturation (0-100) |
hex_to_hsv
Convert hex color to HSV.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color (e.g., #FF5733 or FF5733) |
hsv_to_hex
Convert HSV to hex color.
| Parameter | Type | Description |
|---|---|---|
h * | integer | Hue (0-360) |
s * | integer | Saturation (0-100) |
v * | integer | Value (0-100) |
hex_to_cmyk
Convert hex color to CMYK.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color (e.g., #FF5733 or FF5733) |
cmyk_to_hex
Convert CMYK to hex color.
| Parameter | Type | Description |
|---|---|---|
c * | integer | Cyan (0-100) |
k * | integer | Key/Black (0-100) |
m * | integer | Magenta (0-100) |
y * | integer | Yellow (0-100) |
lighten_color
Lighten a color by a percentage.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to lighten |
amount | integer | Amount to lighten (0-100) |
darken_color
Darken a color by a percentage.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to darken |
amount | integer | Amount to darken (0-100) |
saturate_color
Increase color saturation by a percentage.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to saturate |
amount | integer | Amount to saturate (0-100) |
desaturate_color
Decrease color saturation by a percentage.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to desaturate |
amount | integer | Amount to desaturate (0-100) |
grayscale_color
Convert color to grayscale.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to convert to grayscale |
invert_color
Invert a color.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to invert |
complement_color
Get the complementary color (opposite on color wheel).
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to get complement of |
triadic_colors
Get triadic colors (three colors equally spaced on color wheel).
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to get triadic colors for |
analogous_colors
Get analogous colors (adjacent colors on color wheel).
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color to get analogous colors for |
split_complementary_colors
Get split-complementary colors.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color |
tetradic_colors
Get tetradic colors (four colors forming a rectangle on color wheel).
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color |
contrast_ratio
Calculate contrast ratio between two colors (WCAG).
| Parameter | Type | Description |
|---|---|---|
color1 * | string | First hex color |
color2 * | string | Second hex color |
get_luminance
Calculate relative luminance of a color.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Hex color |
blend_colors
Blend two colors together.
| Parameter | Type | Description |
|---|---|---|
color1 * | string | First hex color |
color2 * | string | Second hex color |
weight | number | Blend weight (0-1, 0.5 = equal mix) |
generate_gradient
Generate a gradient between two colors.
| Parameter | Type | Description |
|---|---|---|
color1 * | string | Start hex color |
color2 * | string | End hex color |
steps | integer | Number of steps in gradient |
generate_shades
Generate shades (darker variations) of a color.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Base hex color |
count | integer | Number of shades |
generate_tints
Generate tints (lighter variations) of a color.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Base hex color |
count | integer | Number of tints |
random_color
Generate a random color.
is_valid_hex
Check if a string is a valid hex color.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string | Color string to validate |
name_to_hex
Convert a CSS color name to hex.
| Parameter | Type | Description |
|---|---|---|
name * | string | CSS color name |
cidr_info
Get information about a CIDR range.
| Parameter | Type | Description |
|---|---|---|
cidr * | string | CIDR notation (e.g., 192.168.1.0/24) |
subnet_mask_info
Get subnet mask from prefix length.
| Parameter | Type | Description |
|---|---|---|
prefix_length * | integer | CIDR prefix length (0-32) |
ip_in_range
Check if an IP address is within a CIDR range.
| Parameter | Type | Description |
|---|---|---|
cidr * | string | CIDR range |
ip * | string | IP address to check |
port_info
Get information about a port number.
| Parameter | Type | Description |
|---|---|---|
port * | integer | Port number |
http_method_info
Get information about an HTTP method.
| Parameter | Type | Description |
|---|---|---|
method * | string | HTTP method |
parse_url_2
Parse a URL into its components.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to parse |
build_url_2
Build a URL from components.
| Parameter | Type | Description |
|---|---|---|
host * | string | Hostname |
path | string | URL path |
port | integer | Port number |
query | string | Query string (without ?) |
scheme | string | URL scheme |
ipv4_to_ipv6_2
Convert IPv4 address to IPv6 mapped format.
| Parameter | Type | Description |
|---|---|---|
ipv4 * | string | IPv4 address |
private_ip_ranges
Get RFC 1918 private IP address ranges.
haversine_distance
Calculate distance between two coordinates using Haversine formula.
| Parameter | Type | Description |
|---|---|---|
lat1 * | number | Latitude of point 1 |
lat2 * | number | Latitude of point 2 |
lon1 * | number | Longitude of point 1 |
lon2 * | number | Longitude of point 2 |
unit | string | Unit: km or mi |
calculate_bearing
Calculate bearing (direction) between two coordinates.
| Parameter | Type | Description |
|---|---|---|
lat1 * | number | Latitude of start point |
lat2 * | number | Latitude of end point |
lon1 * | number | Longitude of start point |
lon2 * | number | Longitude of end point |
calculate_midpoint
Calculate geographic midpoint between two coordinates.
| Parameter | Type | Description |
|---|---|---|
lat1 * | number | Latitude of point 1 |
lat2 * | number | Latitude of point 2 |
lon1 * | number | Longitude of point 1 |
lon2 * | number | Longitude of point 2 |
destination_point
Calculate destination point given start, bearing, and distance.
| Parameter | Type | Description |
|---|---|---|
bearing * | number | Bearing in degrees |
distance * | number | Distance to travel |
lat * | number | Starting latitude |
lon * | number | Starting longitude |
unit | string | Unit: km or mi |
dms_to_decimal
Convert DMS (degrees, minutes, seconds) to decimal degrees.
| Parameter | Type | Description |
|---|---|---|
degrees * | integer | Degrees |
direction * | string | Direction: N, S, E, or W |
minutes * | integer | Minutes |
seconds * | number | Seconds |
decimal_to_dms
Convert decimal degrees to DMS (degrees, minutes, seconds).
| Parameter | Type | Description |
|---|---|---|
coordinate_type * | string | Type: lat or lon |
decimal * | number | Decimal degrees |
is_valid_coordinates
Check if coordinates are valid.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude to validate |
lon * | number | Longitude to validate |
bounding_box
Calculate bounding box around a point.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Center latitude |
lon * | number | Center longitude |
radius * | number | Radius |
unit | string | Unit: km or mi |
point_in_polygon
Check if a point is inside a polygon (ray casting algorithm).
| Parameter | Type | Description |
|---|---|---|
lat * | number | Point latitude |
lon * | number | Point longitude |
polygon * | string | Polygon vertices as lat1,lon1;lat2,lon2;lat3,lon3... |
geohash_encode
Encode coordinates to geohash.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude |
lon * | number | Longitude |
precision | integer | Precision (1-12) |
geohash_decode
Decode geohash to coordinates.
| Parameter | Type | Description |
|---|---|---|
geohash * | string | Geohash string |
polygon_area
Calculate area of a polygon on Earth's surface.
| Parameter | Type | Description |
|---|---|---|
polygon * | string | Polygon vertices as lat1,lon1;lat2,lon2;lat3,lon3... |
unit | string | Unit: km2 or mi2 |
polyline_length
Calculate total length of a polyline.
| Parameter | Type | Description |
|---|---|---|
polyline * | string | Polyline points as lat1,lon1;lat2,lon2;lat3,lon3... |
unit | string | Unit: km or mi |
polygon_centroid
Calculate centroid of a polygon.
| Parameter | Type | Description |
|---|---|---|
polygon * | string | Polygon vertices as lat1,lon1;lat2,lon2;lat3,lon3... |
timezone_offset
Estimate timezone offset from longitude (approximate).
| Parameter | Type | Description |
|---|---|---|
lon * | number | Longitude |
sun_position
Calculate approximate sun position (azimuth and elevation).
| Parameter | Type | Description |
|---|---|---|
day * | integer | Day |
lat * | number | Latitude |
lon * | number | Longitude |
month * | integer | Month |
year * | integer | Year |
hour | integer | Hour (24h format) |
array_intersection
Get intersection of two arrays.
| Parameter | Type | Description |
|---|---|---|
array1 * | string | First comma-separated array |
array2 * | string | Second comma-separated array |
array_union
Get union of two arrays.
| Parameter | Type | Description |
|---|---|---|
array1 * | string | First comma-separated array |
array2 * | string | Second comma-separated array |
array_difference
Get difference of two arrays (items in array1 not in array2).
| Parameter | Type | Description |
|---|---|---|
array1 * | string | First comma-separated array |
array2 * | string | Second comma-separated array |
array_symmetric_difference
Get symmetric difference (items in either but not both).
| Parameter | Type | Description |
|---|---|---|
array1 * | string | First comma-separated array |
array2 * | string | Second comma-separated array |
is_subset
Check if array1 is a subset of array2.
| Parameter | Type | Description |
|---|---|---|
array1 * | string | Potential subset |
array2 * | string | Potential superset |
array_reverse
Reverse an array.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
array_rotate
Rotate an array by n positions.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
positions * | integer | Positions to rotate (positive=right, negative=left) |
array_first
Get first n items from array.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
n | integer | Number of items to get |
array_last
Get last n items from array.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
n | integer | Number of items to get |
array_nth
Get item at specific index.
| Parameter | Type | Description |
|---|---|---|
index * | integer | Index (0-based, negative for from end) |
items * | string | Comma-separated items |
array_slice
Slice an array.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
end | integer | End index (exclusive) |
start | integer | Start index |
array_compact
Remove falsy values (empty strings) from array.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
array_zip
Zip two arrays together.
| Parameter | Type | Description |
|---|---|---|
array1 * | string | First comma-separated array |
array2 * | string | Second comma-separated array |
array_unzip
Unzip array of pairs into two arrays.
| Parameter | Type | Description |
|---|---|---|
pairs * | string | JSON array of pairs, e.g., [[1,2],[3,4]] |
array_fill
Create an array filled with a value.
| Parameter | Type | Description |
|---|---|---|
length * | integer | Array length |
value * | string | Value to fill |
array_repeat
Repeat an array n times.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
times * | integer | Times to repeat |
group_by_length
Group items by their string length.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
array_partition
Partition array into chunks of specified size.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
size * | integer | Partition size |
array_interleave
Interleave two arrays.
| Parameter | Type | Description |
|---|---|---|
array1 * | string | First comma-separated array |
array2 * | string | Second comma-separated array |
array_dedupe
Remove duplicates from array.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
preserve_order | boolean | Preserve original order |
array_frequency
Count frequency of each item.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
calculate_mean
Calculate arithmetic mean (average).
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
calculate_median
Calculate median.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
calculate_mode
Calculate mode (most frequent value).
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
calculate_variance
Calculate variance.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
population | boolean | Use population variance (N) vs sample variance (N-1) |
calculate_stddev
Calculate standard deviation.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
population | boolean | Use population std dev vs sample std dev |
calculate_percentile
Calculate a specific percentile.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
percentile * | number | Percentile to calculate |
calculate_quartiles
Calculate quartiles (Q1, Q2, Q3).
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
calculate_range
Calculate range (max - min).
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
calculate_sum
Calculate sum of numbers.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
calculate_product
Calculate product of numbers.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
geometric_mean
Calculate geometric mean.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated positive numbers |
harmonic_mean
Calculate harmonic mean.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated positive numbers |
calculate_zscore
Calculate z-score (standard score).
| Parameter | Type | Description |
|---|---|---|
mean * | number | Population mean |
stddev * | number | Population standard deviation |
value * | number | Value to calculate z-score for |
calculate_correlation
Calculate Pearson correlation coefficient.
| Parameter | Type | Description |
|---|---|---|
x * | string | Comma-separated X values |
y * | string | Comma-separated Y values |
calculate_covariance
Calculate covariance between two datasets.
| Parameter | Type | Description |
|---|---|---|
x * | string | Comma-separated X values |
y * | string | Comma-separated Y values |
population | boolean | Population covariance vs sample |
describe_data
Get descriptive statistics for a dataset.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
compound_interest
Calculate compound interest.
| Parameter | Type | Description |
|---|---|---|
principal * | number | Initial principal |
rate * | number | Annual interest rate (as percentage, e.g., 5 for 5%) |
time * | number | Time in years |
compounds_per_year | integer | Compounding frequency per year |
simple_interest
Calculate simple interest.
| Parameter | Type | Description |
|---|---|---|
principal * | number | Initial principal |
rate * | number | Annual interest rate (percentage) |
time * | number | Time in years |
loan_payment
Calculate monthly loan payment.
| Parameter | Type | Description |
|---|---|---|
months * | integer | Loan term in months |
principal * | number | Loan amount |
rate * | number | Annual interest rate (percentage) |
calculate_tip
Calculate tip and split bill.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Bill amount |
split | integer | Number of people to split |
tip_percent | number | Tip percentage |
percentage_change
Calculate percentage change between two values.
| Parameter | Type | Description |
|---|---|---|
new_value * | number | New value |
old_value * | number | Original value |
calculate_markup
Calculate selling price from cost and markup.
| Parameter | Type | Description |
|---|---|---|
cost * | number | Cost price |
markup_percent * | number | Markup percentage |
calculate_margin
Calculate profit margin.
| Parameter | Type | Description |
|---|---|---|
cost * | number | Cost price |
selling_price * | number | Selling price |
calculate_discount
Calculate discounted price.
| Parameter | Type | Description |
|---|---|---|
discount_percent * | number | Discount percentage |
original_price * | number | Original price |
calculate_vat
Calculate VAT (Value Added Tax).
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount |
inclusive | boolean | Is amount VAT inclusive? |
vat_rate | number | VAT rate percentage |
mortgage_calculator
Calculate mortgage details.
| Parameter | Type | Description |
|---|---|---|
home_price * | number | Home price |
rate * | number | Annual interest rate (percentage) |
down_payment | number | Down payment |
years | integer | Loan term in years |
rule_of_72
Calculate time to double investment using Rule of 72.
| Parameter | Type | Description |
|---|---|---|
rate * | number | Annual interest rate (percentage) |
future_value
Calculate future value of an investment.
| Parameter | Type | Description |
|---|---|---|
present_value * | number | Present value |
rate * | number | Annual interest rate (percentage) |
years * | integer | Number of years |
present_value
Calculate present value of a future amount.
| Parameter | Type | Description |
|---|---|---|
future_value * | number | Future value |
rate * | number | Annual discount rate (percentage) |
years * | integer | Number of years |
break_even
Calculate break-even point.
| Parameter | Type | Description |
|---|---|---|
cost_per_unit * | number | Variable cost per unit |
fixed_costs * | number | Fixed costs |
price_per_unit * | number | Price per unit |
return_on_investment
Calculate Return on Investment (ROI).
| Parameter | Type | Description |
|---|---|---|
cost * | number | Cost of investment |
gain * | number | Gain from investment |
test_pattern
Test if a regex pattern matches text.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern |
text * | string | Text to test against |
flags | string | Flags: i=ignore case, m=multiline, s=dotall |
find_all_matches
Find all matches of a pattern in text.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern |
text * | string | Text to search |
flags | string | Flags: i=ignore case, m=multiline, s=dotall |
regex_replace
Replace pattern matches in text.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern |
replacement * | string | Replacement string |
text * | string | Text to process |
flags | string | Flags: i=ignore case, m=multiline, s=dotall |
regex_split
Split text by regex pattern.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern to split on |
text * | string | Text to split |
max_split | integer | Maximum splits (0=unlimited) |
validate_pattern
Validate if a regex pattern is syntactically correct.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern to validate |
escape_pattern
Escape special regex characters in text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to escape for use in regex |
extract_groups
Extract capture groups from a pattern match.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Pattern with capture groups |
text * | string | Text to search |
get_email_pattern
Get regex pattern for email validation.
| Parameter | Type | Description |
|---|---|---|
strict | boolean | Use strict RFC 5322 pattern |
get_url_pattern
Get regex pattern for URL validation.
| Parameter | Type | Description |
|---|---|---|
require_protocol | boolean | Require http/https protocol |
get_phone_pattern
Get regex pattern for phone number validation.
| Parameter | Type | Description |
|---|---|---|
country | string | Country: US, UK, international |
get_ipv4_pattern
Get regex pattern for IPv4 address validation.
get_ipv6_pattern
Get regex pattern for IPv6 address validation.
get_date_pattern
Get regex pattern for date validation.
| Parameter | Type | Description |
|---|---|---|
format | string | Format: ISO, US, EU |
get_time_pattern
Get regex pattern for time validation.
| Parameter | Type | Description |
|---|---|---|
format | string | Format: 24h, 12h |
get_credit_card_pattern
Get regex pattern for credit card validation.
| Parameter | Type | Description |
|---|---|---|
card_type | string | Type: visa, mastercard, amex, discover, any |
get_uuid_pattern
Get regex pattern for UUID validation.
| Parameter | Type | Description |
|---|---|---|
version | string | Version: 1, 4, any |
get_slug_pattern
Get regex pattern for URL slug validation.
get_hex_color_pattern
Get regex pattern for hex color validation.
get_password_pattern
Get regex pattern for password validation with custom requirements.
| Parameter | Type | Description |
|---|---|---|
min_length | integer | Minimum length |
require_digit | boolean | Require digit |
require_lowercase | boolean | Require lowercase |
require_special | boolean | Require special character |
require_uppercase | boolean | Require uppercase |
prime_factors
Get prime factors of a number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to factorize |
get_divisors
Get all divisors of a number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to find divisors for |
nth_prime
Get the nth prime number.
| Parameter | Type | Description |
|---|---|---|
n * | integer | Which prime number (1=2, 2=3, etc.) |
primes_in_range
Get all prime numbers in a range.
| Parameter | Type | Description |
|---|---|---|
end * | integer | End of range |
start * | integer | Start of range |
to_roman
Convert number to Roman numerals.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to convert (1-3999) |
base_convert
Convert a number between different bases.
| Parameter | Type | Description |
|---|---|---|
from_base * | integer | Source base |
number * | string | Number to convert |
to_base * | integer | Target base |
is_perfect_number
Check if a number is a perfect number (sum of proper divisors equals the number).
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to check |
is_armstrong_number
Check if a number is an Armstrong number (narcissistic number).
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to check |
is_palindrome_number
Check if a number is a palindrome.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to check |
collatz_sequence
Generate Collatz sequence for a number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Starting number |
digital_root
Calculate the digital root (repeated digit sum until single digit).
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to calculate digital root for |
sum_digits
Sum the digits of a number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to sum digits of |
reverse_number
Reverse the digits of a number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to reverse |
count_digits
Count the number of digits.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to count digits |
nth_triangular
Get the nth triangular number.
| Parameter | Type | Description |
|---|---|---|
n * | integer | Which triangular number |
is_triangular
Check if a number is a triangular number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to check |
nth_square
Get the nth square number.
| Parameter | Type | Description |
|---|---|---|
n * | integer | Which square number |
nth_cube
Get the nth cube number.
| Parameter | Type | Description |
|---|---|---|
n * | integer | Which cube number |
is_power_of
Check if a number is a power of another number.
| Parameter | Type | Description |
|---|---|---|
base * | integer | Base to check against |
number * | integer | Number to check |
nearest_power
Find the nearest power of a base to a number.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Number to find nearest power for |
base | integer | Base |
calculate_bmi
Calculate Body Mass Index (BMI).
| Parameter | Type | Description |
|---|---|---|
height_cm * | number | Height in centimeters |
weight_kg * | number | Weight in kilograms |
calculate_bmr
Calculate Basal Metabolic Rate (BMR) using Mifflin-St Jeor equation.
| Parameter | Type | Description |
|---|---|---|
age * | integer | Age in years |
height_cm * | number | Height in centimeters |
sex * | string | Sex: male or female |
weight_kg * | number | Weight in kilograms |
ideal_weight
Calculate ideal body weight using various formulas.
| Parameter | Type | Description |
|---|---|---|
height_cm * | number | Height in centimeters |
sex * | string | Sex: male or female |
heart_rate_zones
Calculate heart rate training zones.
| Parameter | Type | Description |
|---|---|---|
age * | integer | Age in years |
resting_hr | integer | Resting heart rate (optional) |
estimate_body_fat
Estimate body fat percentage using US Navy method.
| Parameter | Type | Description |
|---|---|---|
height_cm * | number | Height in cm |
neck_cm * | number | Neck circumference in cm |
sex * | string | Sex: male or female |
waist_cm * | number | Waist circumference in cm |
hip_cm | number | Hip circumference in cm (required for females) |
daily_water_intake
Calculate recommended daily water intake.
| Parameter | Type | Description |
|---|---|---|
weight_kg * | number | Weight in kilograms |
activity_level | string | Activity level: low, moderate, high |
calories_burned
Estimate calories burned during activities.
| Parameter | Type | Description |
|---|---|---|
activity * | string | Activity type |
duration_minutes * | integer | Duration in minutes |
weight_kg * | number | Body weight in kg |
calculate_macros
Calculate macronutrient targets.
| Parameter | Type | Description |
|---|---|---|
calories * | integer | Daily calorie target |
goal | string | Goal: lose, maintain, gain |
sleep_cycles
Calculate optimal sleep/wake times based on 90-minute sleep cycles.
| Parameter | Type | Description |
|---|---|---|
sleep_time | string | Desired sleep time (HH:MM) |
wake_time | string | Desired wake time (HH:MM) |
lorem_words_2
Generate lorem ipsum words.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of words |
start_with_lorem | boolean | Start with 'Lorem ipsum' |
lorem_sentences
Generate lorem ipsum sentences.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of sentences |
start_with_lorem | boolean | Start with standard Lorem ipsum sentence |
lorem_paragraphs
Generate lorem ipsum paragraphs.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of paragraphs |
start_with_lorem | boolean | Start with standard Lorem ipsum |
lorem_html
Generate lorem ipsum as HTML.
| Parameter | Type | Description |
|---|---|---|
include_headings | boolean | Include h2 headings |
paragraphs | integer | Number of paragraphs |
lorem_markdown
Generate lorem ipsum as Markdown.
| Parameter | Type | Description |
|---|---|---|
include_headings | boolean | Include headings |
include_list | boolean | Include a bullet list |
paragraphs | integer | Number of paragraphs |
lorem_bytes
Generate lorem ipsum of approximately specified byte size.
| Parameter | Type | Description |
|---|---|---|
size | integer | Approximate size in bytes |
generate_names
Generate random placeholder names.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of names |
include_last | boolean | Include last names |
generate_emails
Generate random placeholder email addresses.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of emails |
domain | string | Email domain |
generate_addresses
Generate random placeholder addresses.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of addresses |
generate_phones
Generate random placeholder phone numbers.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of phone numbers |
format | string | Format: us, international |
generate_companies
Generate random placeholder company names.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of company names |
generate_dates
Generate random dates.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of dates |
end_year | integer | End year |
format | string | Format: ISO, US, EU |
start_year | integer | Start year |
generate_uuids
Generate random UUIDs.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of UUIDs |
magic_8_ball
Ask the Magic 8-Ball.
| Parameter | Type | Description |
|---|---|---|
question * | string | Your yes/no question |
fortune_cookie
Get a fortune cookie message.
dad_joke
Get a random dad joke.
would_you_rather
Get a 'Would You Rather' question.
random_compliment
Generate a random compliment.
| Parameter | Type | Description |
|---|---|---|
name | string | Name to compliment |
random_excuse
Generate a random excuse.
| Parameter | Type | Description |
|---|---|---|
context | string | Context: work, school, social |
friendly_roast
Generate a friendly roast.
| Parameter | Type | Description |
|---|---|---|
name | string | Name to roast |
random_trivia
Get a random trivia fact.
random_emoji
Get random emoji(s).
| Parameter | Type | Description |
|---|---|---|
category | string | Category: faces, animals, food, nature, objects, all |
count | integer | Number of emojis |
yes_no
Get a random yes or no answer.
| Parameter | Type | Description |
|---|---|---|
question * | string | Your yes/no question |
random_integer
Generate random integer(s) within a range.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of integers to generate |
max_val | integer | Maximum value (inclusive) |
min_val | integer | Minimum value (inclusive) |
unique | boolean | Ensure all values are unique (count must be <= range) |
random_float_2
Generate random floating-point number(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of floats to generate |
decimals | integer | Number of decimal places |
max_val | number | Maximum value |
min_val | number | Minimum value |
random_boolean
Generate random boolean value(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of booleans to generate |
true_weight | number | Probability of True (0.0 to 1.0) |
random_choice
Pick random item(s) from a list.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items to choose from |
allow_duplicates | boolean | Allow same item to be chosen multiple times |
count | integer | Number of choices to make |
random_weighted_choice
Pick random item(s) with weighted probabilities.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items (e.g., 'red,green,blue') |
weights * | string | Comma-separated weights (e.g., '50,30,20') |
count | integer | Number of choices to make |
random_shuffle
Randomly shuffle a list of items.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items to shuffle |
random_string_2
Generate random string(s) from specified character set.
| Parameter | Type | Description |
|---|---|---|
charset | string | Character set: alphanumeric, alpha, numeric, lowercase, uppercase, hex, base64, ascii, symbols |
count | integer | Number of strings to generate |
length | integer | Length of the string |
random_bytes_2
Generate cryptographically secure random bytes.
| Parameter | Type | Description |
|---|---|---|
format | string | Output format: hex, base64, urlsafe |
length | integer | Number of bytes to generate |
random_uuid
Generate random UUID(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of UUIDs to generate |
version | integer | UUID version (1 or 4) |
random_gaussian
Generate random number(s) from a Gaussian (normal) distribution.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of values to generate |
decimals | integer | Decimal places |
mean | number | Mean (center) of the distribution |
std_dev | number | Standard deviation |
random_date
Generate random date(s) within a range.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of dates to generate |
end | string | End date (YYYY-MM-DD) |
format | string | Output format: iso, us, eu, unix |
start | string | Start date (YYYY-MM-DD) |
random_time
Generate random time(s) of day.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of times to generate |
format | string | Output format: 24h, 12h, iso |
include_seconds | boolean | Include seconds in output |
random_color_2
Generate random color(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of colors to generate |
format | string | Output format: hex, rgb, hsl, rgba |
random_name
Generate random name(s) using Faker with locale support.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of names to generate |
gender | Gender hint: male, female, or null for random | |
locale | Locale (e.g., en_US, es_ES, ja_JP, zh_CN, fr_FR, de_DE) | |
type | string | Name type: first, last, full, prefix, suffix |
random_email
Generate random email address(es) using Faker.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of emails to generate |
domain | Specific domain (e.g., 'example.com') | |
locale | Locale for name-based emails | |
safe | boolean | Use safe domains (example.com, etc.) vs realistic domains |
random_phone
Generate random phone number(s) using Faker with locale-appropriate formats.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of phone numbers to generate |
locale | Locale for phone format (e.g., en_US, en_GB, de_DE, ja_JP) |
random_ip
Generate random IP address(es).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of IPs to generate |
private | boolean | Generate private IPs only (v4 only) |
version | integer | IP version: 4 or 6 |
random_mac
Generate random MAC address(es).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of MAC addresses to generate |
separator | string | Separator: :, -, or none |
uppercase | boolean | Use uppercase letters |
random_coordinates
Generate random geographic coordinates.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of coordinate pairs to generate |
decimals | integer | Decimal precision |
region | Region: us, eu, asia, or null for worldwide |
random_dice
Roll dice with configurable sides.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of dice to roll |
sides | integer | Number of sides on the die |
random_coin
Flip a coin (optionally biased).
| Parameter | Type | Description |
|---|---|---|
bias | number | Probability of heads (0.5 = fair coin) |
count | integer | Number of coin flips |
random_card
Draw random playing card(s) from a deck.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of cards to draw |
include_jokers | boolean | Include joker cards |
random_password
Generate secure random password(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of passwords to generate |
exclude_ambiguous | boolean | Exclude ambiguous characters (0O1lI) |
length | integer | Password length |
lowercase | boolean | Include lowercase letters |
numbers | boolean | Include numbers |
symbols | boolean | Include symbols |
uppercase | boolean | Include uppercase letters |
random_hex
Generate random hexadecimal string(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of hex strings to generate |
length | integer | Number of hex characters |
prefix | boolean | Include 0x prefix |
uppercase | boolean | Use uppercase letters |
random_element
Get random chemical element(s).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of elements to pick |
random_emoji_2
Get random emoji(s).
| Parameter | Type | Description |
|---|---|---|
category | Category: faces, animals, food, nature, objects, or null for all | |
count | integer | Number of emojis to pick |
random_address
Generate random address(es) using Faker with locale support.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of addresses to generate |
locale | Locale (e.g., en_US, en_GB, de_DE, ja_JP) |
random_company
Generate random company name(s) using Faker.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of companies to generate |
locale | Locale (e.g., en_US, ja_JP, de_DE) |
random_job
Generate random job title(s) using Faker.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of job titles to generate |
locale | Locale (e.g., en_US, fr_FR, de_DE) |
random_person
Generate complete random person profile(s) using Faker.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of people to generate |
gender | Gender hint: male, female, or null for random | |
locale | Locale (e.g., en_US, es_ES, ja_JP, zh_CN) |
random_text
Generate random text using Faker.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of items (words, sentences, or paragraphs) |
locale | Locale for text generation | |
type | string | Type: word, words, sentence, sentences, paragraph, paragraphs, text |
random_username
Generate random username(s) using Faker.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of usernames to generate |
locale | Locale for username style |
random_url
Generate random URL(s) using Faker.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of URLs to generate |
random_credit_card
Generate random credit card details (fake, for testing only).
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of cards to generate |
type | Card type: visa, mastercard, amex, discover, or null for random |
list_locales
List available locales for Faker-powered endpoints.
echo
Echo back the message. For testing.
| Parameter | Type | Description |
|---|---|---|
message * | string | Message to echo back |
ping
Ping endpoint. Returns pong.
null
Returns null. For when you need a null.
true_endpoint
Returns true.
false_endpoint
Returns false.
empty_array
Returns an empty array.
empty_object
Returns an empty object.
user_agent
Parse a user agent string.
| Parameter | Type | Description |
|---|---|---|
ua * | string | User agent string to parse |
ip_info_2
Get basic information about an IP address.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to get info for |
rgb_to_hsl
Convert RGB to HSL color.
| Parameter | Type | Description |
|---|---|---|
b * | integer | Blue (0-255) |
g * | integer | Green (0-255) |
r * | integer | Red (0-255) |
compare_2
Compare two values.
| Parameter | Type | Description |
|---|---|---|
a * | string | First value |
b * | string | Second value |
sort_items
Sort a list of items.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items to sort |
numeric | boolean | Sort as numbers |
order | string | Sort order (asc or desc) |
unique_items
Get unique items from a list.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
count_items
Count occurrences of each item.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
min_value
Find minimum value.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
max_value
Find maximum value.
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated numbers |
fizzbuzz
The classic FizzBuzz. Enterprise-grade.
| Parameter | Type | Description |
|---|---|---|
n * | integer | Number to check |
hello_world
Hello World as a Service.
| Parameter | Type | Description |
|---|---|---|
name | string | Name to greet |
status_code_info
Get information about an HTTP status code.
| Parameter | Type | Description |
|---|---|---|
code * | integer | HTTP status code |
chunk_array
Split items into chunks of specified size.
| Parameter | Type | Description |
|---|---|---|
items * | string | Comma-separated items |
size | integer | Chunk size |
flatten_array
Flatten a nested array.
| Parameter | Type | Description |
|---|---|---|
json_array * | string | Nested JSON array to flatten |
in_range
Check if a value is within a range.
| Parameter | Type | Description |
|---|---|---|
max_val * | number | Maximum value |
min_val * | number | Minimum value |
value * | number | Value to check |