Public Free API

FormatDock

A lightweight collection of JSON utilities for text, time, URL, JSON, encoding, and hashing tasks. The public release is designed to stay fast, predictable, and easy to verify from scripts or browsers.

Browse by category, copy an endpoint, and start with a practical request. The public free routes are intentionally narrow in scope, deterministic, and rate limited at the edge.

Core

Basic availability

Minimal public checks for a quick liveness probe or a UTC timestamp, not the main utility surface.

Ping

Receive a 'pong' as a liveness check.

GET Free
https://api.formatdock.com/v1/free/ping

Text

Extraction and normalization

Small text utilities for counts, extraction, cleanup, deduplication, and clean slug output.

Slugify Text

Convert a phrase into a clean lowercase ASCII slug.

POST Free
https://api.formatdock.com/v1/free/text/slugify

Word Count

Return word, character, and line counts for a text block.

POST Free
https://api.formatdock.com/v1/free/text/word-count

Extract URLs

Pull HTTP and HTTPS links out of plain text.

POST Free
https://api.formatdock.com/v1/free/text/extract-urls

Extract Emails

Extract email-like addresses from plain text.

POST Free
https://api.formatdock.com/v1/free/text/extract-emails

Dedupe Lines

Remove duplicate lines while preserving the first occurrence.

POST Free
https://api.formatdock.com/v1/free/text/dedupe-lines

Text Cleanup

Trim edges and collapse internal whitespace in an input string.

POST Free
https://api.formatdock.com/v1/free/text/cleanup

Time

UTC and timestamp helpers

Current UTC time, direct conversions, shifting, and a small timestamp difference utility.

Current UTC Time

Return current UTC time and a Unix epoch value.

GET Free
https://api.formatdock.com/v1/free/time/utc

Unix To UTC

Convert a Unix epoch into an RFC 3339 UTC timestamp.

POST Free
https://api.formatdock.com/v1/free/time/unix-to-utc

UTC To Unix

Convert an RFC 3339 timestamp into a Unix epoch value.

POST Free
https://api.formatdock.com/v1/free/time/utc-to-unix

Time Difference

Calculate minute and second differences between two timestamps.

POST Free
https://api.formatdock.com/v1/free/time/diff-minutes

Time Shift

Shift a timestamp forward or backward by a chosen number of minutes.

POST Free
https://api.formatdock.com/v1/free/time/shift

JSON & Data

Formatting and validation

Simple helpers for validating JSON, making it readable, or compacting it for transport.

Pretty JSON

Pretty-print valid JSON with configurable indentation.

POST Free
https://api.formatdock.com/v1/free/json/pretty

Minify JSON

Collapse valid JSON into a compact single-line form.

POST Free
https://api.formatdock.com/v1/free/json/minify

Validate JSON

Check whether JSON is valid and report the top-level type or error location.

POST Free
https://api.formatdock.com/v1/free/json/validate

Encoding & Hashing

String encoding helpers

Deterministic helpers for SHA-256 and Base64 work.

SHA-256 Hash

Return the SHA-256 hex digest for a string.

POST Free
https://api.formatdock.com/v1/free/hash/sha256

Base64 Encode

Encode UTF-8 text as Base64 or URL-safe Base64.

POST Free
https://api.formatdock.com/v1/free/encoding/base64-encode

Base64 Decode

Decode Base64 text back into UTF-8.

POST Free
https://api.formatdock.com/v1/free/encoding/base64-decode

URL & Web

URL inspection

Inspect URL components, normalize a public URL, or break down a User-Agent string into browser, OS, device, and bot-like hints.

Parse URL

Split a URL into components and query parameters.

POST Free
https://api.formatdock.com/v1/free/url/parse

Normalize URL

Lowercase scheme and host, remove default ports, and optionally drop fragments.

POST Free
https://api.formatdock.com/v1/free/url/normalize

Parse User-Agent

Classify a User-Agent string into browser, OS, device type, and a conservative bot-like flag.

POST Free
https://api.formatdock.com/v1/free/ua/parse

Quickstart

Start with a few direct calls. The practical POST utilities come first; the small GET checks are kept at the end.

curl -X POST https://api.formatdock.com/v1/free/text/extract-emails \
  -H "Content-Type: application/json" \
  -d '{"text":"Email ops@example.com and admin@example.org"}'
curl -X POST https://api.formatdock.com/v1/free/text/cleanup \
  -H "Content-Type: application/json" \
  -d '{"text":"   keep   this tidy   "}'
curl -X POST https://api.formatdock.com/v1/free/json/validate \
  -H "Content-Type: application/json" \
  -d '{"text":"{\"service\":\"utility-api\",\"free\":true}"}'
curl -X POST https://api.formatdock.com/v1/free/url/parse \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/docs?q=one&q=two#frag"}'
curl -X POST https://api.formatdock.com/v1/free/url/normalize \
  -H "Content-Type: application/json" \
  -d '{"url":"HTTPS://Example.com:443/docs/../docs/?b=2&a=1#frag"}'
curl -X POST https://api.formatdock.com/v1/free/ua/parse \
  -H "Content-Type: application/json" \
  -d '{"user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1"}'
curl -X POST https://api.formatdock.com/v1/free/hash/sha256 \
  -H "Content-Type: application/json" \
  -d '{"text":"FormatDock"}'
curl -X POST https://api.formatdock.com/v1/free/time/shift \
  -H "Content-Type: application/json" \
  -d '{"timestamp":"2026-05-15T12:00:00Z","delta_minutes":15}'
curl https://api.formatdock.com/v1/free/time/utc
curl https://api.formatdock.com/v1/free/ping