How to batch font to svg path conversion with api and scripts
- Step 1Prepare your text list — Create a JSON array of objects with text and optional font overrides: [{ text: 'Product Name', font: 'Inter', size: 48 }, ...]. For uniform styling, set a default font configuration and only override where needed.
- Step 2Send batch requests to the API — POST to the /font-to-path/batch endpoint with your array. The API processes requests in parallel and returns an array of SVG strings in the same order. Use p-limit to cap concurrent connections to 10 for large batches.
- Step 3Save and cache the outputs — Write each SVG to a file named after the text string (or a hash of it). Cache the result by the string+font hash — identical strings with the same font never need reconverting.
Frequently asked questions
Can I upload a custom font file for batch conversion?+
Yes. Upload your font file once via the /fonts endpoint to get a font ID. Reference this ID in batch requests instead of a font name. Custom font files are stored for 24 hours on the Free tier and 30 days on Pro and Developer tiers.
How does the API handle very long text strings?+
The Free tier supports up to 200 characters per string. Pro tier: 500 characters. Developer tier: unlimited. Longer strings generate more complex path data — consider splitting very long strings into multiple SVGs for performance.
Can I get the path data as a JSON array of path commands instead of SVG?+
Yes. Set responseFormat: 'pathData' in the API request. The response includes each character's path data as a structured JSON array of move/line/curve commands, useful for feeding into canvas rendering or WebGL without parsing the SVG string.
What is the API rate limit for batch conversion?+
Batch requests count as one request per string in the batch. Free tier: 300 strings/hour. Pro tier: 3,000 strings/hour. Developer tier: unlimited. Large catalogues (10,000+ SKUs) should run conversion jobs overnight or in off-peak hours on the Developer tier.
Privacy first
Every JAD SVG tool runs entirely in your browser using the DOM API and Canvas. Your SVG files never leave your device — verified by zero outbound network requests during processing.