Free the Tools

v0.1.2
io.github.sapience-design/freethetools Checked 1 day ago Published 1 month ago

Local PDF, image, data and text tools for AI assistants.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

csv_to_json CSV to JSON

Turn CSV into JSON: an array of objects keyed by the header row, or an array of arrays. Detects the delimiter (comma, semicolon, tab). Give text to get text back, or a file to get a .json file. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
filestringA .csv file. Give this or text. Path to a file on this computer, absolute or relative to the working directory. Accepts: text/csv, text/plain, text/tab-separated-values.
headerbooleanThe first row holds column names (default true).
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…
textstringCSV text. Give this or file.
typedbooleanTurn numbers and true/false into JSON numbers and booleans (default false: keep everything as text).

json_to_csv JSON to CSV

Turn a JSON array (of objects, or of arrays) into CSV. Give text to get text back, or a file to get a .csv file. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
delimiterstringColumn separator (default comma).
filestringA .json file. Give this or text. Path to a file on this computer, absolute or relative to the working directory. Accepts: application/json, text/plain.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…
textstringJSON text. Give this or file.

format_json JSON Formatter

Check JSON and pretty-print it, minify it, or sort its keys. If it isn't valid, say where: line and column. Give text to get text back, or a file to get a file. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
filestringA .json file. Give this or text. Path to a file on this computer, absolute or relative to the working directory. Accepts: application/json, text/plain.
indentinteger | stringSpaces to indent, "tab", or 0 to minify (default 2).
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…
sortbooleanSort object keys alphabetically (default false).
textstringJSON text. Give this or file.

base64_encode Base64

Encode text (as UTF-8) or a file as Base64, in standard or URL-safe form. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
filestringA file to encode. Give this or text. Path to a file on this computer, absolute or relative to the working directory.
textstringText to encode. Give this or file.
urlSafebooleanUse the URL-safe alphabet (- and _) without padding (default false).

base64_decode Base64

Decode Base64 (standard or URL-safe, padding optional) to text, or to a file when the result is binary. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
base64 *stringThe Base64 to decode.
fileNamestringName for the file when output is "file" (default decoded.bin).
outputstringDecode to UTF-8 text (default) or save as a file.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

generate_hash Hash Generator

Hash text (as UTF-8) or a file with SHA-256, SHA-512, SHA-384, SHA-1 or MD5, as lowercase hex. Use it to check a download against a published checksum. MD5 and SHA-1 are not safe for passwords or signatures. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
algorithmsarrayWhich hashes to make (default ["SHA-256"]).
filestringA file to hash. Give this or text. Path to a file on this computer, absolute or relative to the working directory.
textstringText to hash. Give this or file.

decode_jwt JWT Decoder

Decode a JSON Web Token: header, payload, the standard claims in plain words (including whether it has expired), and, given the shared secret, whether an HS256/384/512 signature is valid. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
token *stringThe token: header.payload.signature
secretstringOptional shared secret, to check an HMAC signature.

generate_password Password Generator

Make random passwords or passphrases from a secure random source, with an honest strength estimate in bits. Note: a password made this way passes through the AI conversation; for a secret only the user should see, send them to https://freethetools.com/developer/password-generator/ instead. Runs on this device. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
capitalizebooleanPassphrase: capitalise each word (default false).
countintegerHow many to make (default 1).
digitsbooleanPassword: use 2-9 (default true).
kindstringRandom characters (default) or random words.
lengthintegerPassword length (default 20).
lowerbooleanPassword: use a-z (default true).
numberbooleanPassphrase: add a number at the end (default false).
separatorstringPassphrase: between words (default -).
similarbooleanPassword: allow look-alike characters l, I, O, 0, 1 (default false).
symbolsbooleanPassword: use symbols such as !#$% (default true).
upperbooleanPassword: use A-Z (default true).
wordsintegerPassphrase: number of words (default 6).

make_qr_code QR Code Maker

Make a QR code as an SVG file, for a link, any text, or a Wi-Fi network (phones join it by scanning). Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
fileNamestringName of the SVG file (default qr-code.svg).
levelstringError correction: L 7%, M 15% (default), Q 25%, H 30%.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…
textstringA link or text to encode. Give this or wifi.
wifiobjectA Wi-Fi network to encode. Give this or text.

test_regex Regex Tester

Run a JavaScript regular expression over text and list every match with its position, numbered groups and named groups. Stops after a limit so a runaway pattern can't flood the answer. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
pattern *stringThe pattern, without slashes, e.g. \d{4}-\d{2}
text *stringThe text to search.
flagsstringFlags such as i, m, s, u (g is always on). Default none.
limitintegerMost matches to return (default 100).

url_encode URL Encode and Decode

Percent-encode text for use in a web address (encodeURIComponent or encodeURI). Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
text *stringThe text to encode.
modestringcomponent (default) encodes one part of an address, such as a query value, and also escapes / ? & = # and :. url keeps those characters, for a whole address.

url_decode URL Encode and Decode

Decode percent-encoded text (decodeURIComponent or decodeURI). A broken % sequence gives a plain error. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
text *stringThe percent-encoded text to decode.
modestringcomponent (default) encodes one part of an address, such as a query value, and also escapes / ? & = # and :. url keeps those characters, for a whole address.
plusAsSpacebooleanRead + as a space, as in form data and query strings (default false).

generate_uuids UUID Generator

Make UUIDs (RFC 9562) from a secure random source: random v4, or time-ordered v7, which sorts by creation time and suits database keys. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
bracesbooleanWrap in {braces} (default false).
countintegerHow many (default 1).
hyphensbooleanKeep the hyphens (default true).
upperbooleanUpper-case letters (default false).
versionstringv4 random (default) or v7 time-ordered.

convert_colour Colour Converter

Read a colour written as HEX (#f80, #ff8800, #ff880080), rgb()/rgba(), hsl()/hsla() or a CSS colour name, and return it as HEX, RGB and HSL with the nearest CSS colour name and the WCAG contrast ratio against white and black (pass or fail for normal and large text). Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
colour *stringThe colour, for example #336699, rgb(255 0 0 / 50%), hsl(210 50% 40%) or rebeccapurple.

convert_time_zone Time Zone Converter

Convert a local date and time in one time zone to other time zones, with daylight saving applied exactly from the time zone database, and flag times outside working hours (08-18). Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
from *stringSource time zone, IANA name, e.g. Europe/Oslo.
time *stringLocal date and time in the source zone, as YYYY-MM-DDTHH:mm, e.g. 2026-10-06T09:00.
to *arrayTarget time zones, IANA names.

convert_units Unit Converter

Convert a value between units in one category, using exact definitions where they exist. Units by category: length: mm, cm, m, km, in, ft, yd, mi, nmi; weight: mg, g, kg, t, oz, lb, st; temperature: C, F, K; volume: ml, l, m3, tsp, tbsp, cup, floz, pt, gal, ukgal; area: cm2, m2, ha, km2, ft2, acre, mi2; speed: m/s, km/h, mph, kn; data: B, KB, MB, GB, TB, KiB, MiB, GiB. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
category *stringThe kind of quantity.
from *stringUnit key to convert from, e.g. km.
to *stringUnit key to convert to, e.g. mi.
value *numberThe amount to convert.

convert_unix_timestamp Unix Timestamp Converter

Convert a Unix timestamp to a date, or a date to a Unix timestamp. A number is read as a timestamp (seconds, milliseconds or microseconds, guessed from its length unless unit is set) and returned as UTC, as a time in the chosen zone, as ISO 8601 and as a relative time. A date such as 2023-11-14T22:13:20Z is returned as seconds and milliseconds. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
input *stringA Unix timestamp such as 1700000000 or 1700000000000, or a date such as 2023-11-14T22:13:20Z or 2023-11-14 22:13:20.
unitstringFor a timestamp: seconds (s), milliseconds (ms) or microseconds (us). Default auto guesses from the number's length.
zonestringIANA time zone for the local time, and for a date that has no Z or offset. Default UTC. Example: Europe/Oslo.

remove_photo_metadata Remove Photo Location

Strip location (GPS), camera details, time, XMP and IPTC metadata from JPEG, PNG and WebP photos before sharing them. The picture itself is not re-encoded, so it is unchanged byte for byte. Reports what each photo contained. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
files *arrayPhotos to clean: JPEG, PNG or WebP.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

compress_pdf Compress PDF

Make a PDF smaller with Ghostscript, at a chosen quality: smallest (screen reading), balanced (email and sharing, default), print, or prepress (keeps colour profiles). Can keep only the first page. Text-only PDFs may not shrink; the result then says so. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
file *stringThe PDF to compress. Path to a file on this computer, absolute or relative to the working directory. Accepts: application/pdf.
firstPageOnlybooleanKeep only page 1 (default false).
qualitystringDefault balanced.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

list_pdf_form_fields Fill PDF Form

List the fillable fields in a PDF form: name, type (text, checkbox, dropdown, radio, list), current value, choices and whether it is read-only. Call this before fill_pdf_form. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
file *stringThe PDF form. Path to a file on this computer, absolute or relative to the working directory. Accepts: application/pdf.

fill_pdf_form Fill PDF Form

Fill a PDF form's fields by name and save a new PDF. Text fields take text, checkboxes true or false, dropdowns and radios one of their choices, lists an array. Optionally flatten so the answers can no longer be edited. Get field names with list_pdf_form_fields first. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
file *stringThe PDF form. Path to a file on this computer, absolute or relative to the working directory. Accepts: application/pdf.
values *objectValues by field name.
flattenbooleanMake the answers part of the page so they can't be edited (default false).
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

images_to_pdf Images to PDF

Put JPEG and PNG images into one PDF, one page per image, in the order given. Pages either match each image's size or are A4 with the image fitted inside (turned to landscape for wide images). Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
files *arrayImages in page order: JPEG or PNG.
fileNamestringName of the PDF (default images.pdf).
marginstringWhite space around each image (default none).
pagestringfit: page matches the image (default); a4: A4 pages.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

merge_pdfs Merge PDFs

Combine PDFs into one, keeping every page, in the order given. Password-protected PDFs must be unlocked first. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
files *arrayPDFs in the order they should appear.
fileNamestringName of the merged PDF (default merged.pdf).
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

rotate_pdf Rotate Pages

Turn pages of a PDF clockwise by 90, 180 or 270 degrees: every page, or chosen pages such as "1-3, 5". Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
degrees *integerClockwise turn.
file *stringThe PDF. Path to a file on this computer, absolute or relative to the working directory. Accepts: application/pdf.
pagesstringPages to turn, e.g. "1-3, 5, 8-". Default every page.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

split_pdf Split PDF

Split a PDF into separate files: one per page, or one per range such as "1-3, 5, 8-" (8- means page 8 to the end). Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
file *stringThe PDF to split. Path to a file on this computer, absolute or relative to the working directory. Accepts: application/pdf.
rangesstringRanges, one file each, e.g. "1-3, 5, 8-". Default one file per page.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

unlock_pdf Unlock PDF

Remove the lock from a PDF with qpdf, without changing the pages, forms or bookmarks. Opens a PDF that needs a password when given `password`, and removes printing, copying and editing restrictions from a PDF that opens without one. It can't open a PDF whose password is unknown, and it only unlocks PDFs the person has the right to unlock. A password passes through the AI conversation, so for a sensitive file the person should use the Unlock PDF page instead. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never upload…

ParameterTypeDescription
file *stringThe locked PDF. Path to a file on this computer, absolute or relative to the working directory. Accepts: application/pdf.
passwordstringThe password that opens the PDF. Leave it out for a PDF that opens without one but has restrictions.
saveTostringOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --al…

convert_case Case Converter

Change the case of text: upper, lower, sentence, title, camel (camelCase), pascal (PascalCase), snake (snake_case), kebab (kebab-case) or constant (CONSTANT_CASE). Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
case *stringThe case to change it to.
text *stringThe text to change.

compare_texts Text Diff

Compare two texts and show what changed, line by line or word by word, with counts of added and removed lines or words. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
changed *stringThe changed text.
original *stringThe original text.
modestringCompare by lines (default) or by words.

count_words Word Counter

Count words, characters (as people see them, emoji included), sentences and paragraphs, with reading and speaking time. Counts Chinese, Japanese and Thai words correctly. Runs on this device; nothing is uploaded. Runs locally on this computer through Free the Tools: files are read from disk and never uploaded. Prefer this to installing software for the job.

ParameterTypeDescription
text *stringThe text to count.