Back

#format

5 APIs with this tag

Pad API

Pad and align strings to a target width. The pad endpoint adds a fill character to the start, end, or both sides of a value until it reaches the width you ask for — zero-pad a number (7 → 007), right-align a price column, centre a heading, or build a fixed-width field — with any fill string (space, 0, dash, dots) and an optional truncate flag to cut values that are already too long. The align endpoint takes a whole list of lines (or newline-separated text) and pads every line to a common width, so columns line up in fixed-width tables, ASCII layouts, receipts, invoices and logs. Width is counted in Unicode code points, so emoji and accented letters each count as one and never get split. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This pads to a width; to wrap long text across lines use a word-wrap API, and to convert between case styles use a text-case API.

api.oanor.com/pad-api

Number API

A fast, fully-local number toolkit: spell numbers out in English words (great for amount-in-words on invoices and cheques), format ordinals (1st, 2nd, 112th), convert integers to and from Roman numerals (1 to 3999), convert numbers between any bases from 2 to 36, and format numbers locale-aware as decimal, currency or percent. Every endpoint accepts input via the query string or the request body. Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for invoicing and billing, localization, education and developer formatting tooling.

api.oanor.com/number-api

XML API

A fast, fully-local XML toolkit: convert XML to JSON and JSON to XML with configurable attribute handling, validate XML well-formedness with line and column error details, and pretty-print XML while preserving element order. Every endpoint accepts input via the query string or the request body, up to 2 MB. Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for system integrations, SOAP and legacy interop, RSS and sitemap processing, config tooling and data pipelines.

api.oanor.com/xml-api

DateTime API

A fast, fully-local date and time toolkit (UTC): parse any date string or unix timestamp into ISO, unix and components with the ISO week number, day-of-year and leap-year flag; format dates with custom tokens (YYYY-MM-DD, weekday and month names, and more); add or subtract month-aware durations; compute the difference between two dates in every unit plus a human-readable summary; and convert between unix timestamps and ISO. Every endpoint accepts input via the query string or the request body. Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for scheduling, billing periods, reminders, analytics and any date arithmetic. (For the current time in a specific timezone, see the oanor Time API.)

api.oanor.com/datetime-api

JSON API

A fast, fully-local JSON and CSV toolkit: validate JSON (with a clear error message, type and size), pretty-print and format it (with optional deep key-sorting), minify it (reporting bytes saved), and convert between CSV and JSON — RFC-4180 CSV parsing with automatic value typing, and JSON arrays to CSV. Every endpoint accepts input via the query string or the request body (up to 1 MB). Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for data pipelines, ETL, webhooks, config tooling and developer utilities.

api.oanor.com/json-api