Lorem Bytes generates lorem ipsum text to match a target byte size, useful for testing data payloads and UI layouts. Access via MCP in Cursor or Windsurf, or REST at `/v1/lorem/bytes?size=1024`. Returns close-to-exact byte counts — perfect for simulating real content loads in development without manual text crafting.
curl "https://tinyfn.io/v1/lorem/bytes" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/lorem/bytes', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/lorem/bytes',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's lorem ipsum tools:
{
"mcpServers": {
"tinyfn-lorem": {
"url": "https://tinyfn.io/mcp/lorem",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
The generator produces text within a few bytes of your target size by truncating or padding the final sentence. Exact matches aren't guaranteed due to sentence boundaries.
Yes, MCP integration lets you generate test content directly in your editor. Specify byte sizes to simulate real content loads for responsive design testing.
Lorem bytes targets specific byte sizes rather than word or paragraph counts, making it ideal for testing data limits, API payloads, and storage constraints.
The tool handles sizes from small snippets (50+ bytes) to large content blocks (several KB). Very small requests may return minimal lorem text.
Yes, the generated text includes proper sentence structure, punctuation, and spacing. Line breaks depend on the content length and natural paragraph flow.