json to url

JSON to URL — host a JSON file, share a public endpoint

Upload a JSON file and get a public HTTPS endpoint in under 2 seconds. Free, no signup, CORS-friendly — perfect for fetch() demos, mock APIs, and static data.

How it works

  1. 1
    Upload your JSON

    Drop a .json file into the box above. Files up to 1MB upload in under 2 seconds. The JSON is served as-is — no transformation, no schema validation, no key renaming.

  2. 2
    We serve it with Content-Type application/json

    OneClickLive hosts the file on Cloudflare R2 with Content-Type: application/json and Access-Control-Allow-Origin: *, so any browser fetch() call from any origin works without a CORS proxy.

  3. 3
    Use the URL in fetch(), curl, or imports

    Drop the URL into a fetch() call, a CodePen demo, an ES module import, or a Postman request. The endpoint responds to GET requests with the raw JSON body — no auth header, no API key.

OneClickLive vs the alternatives

Speed, control, and jurisdiction at a glance.

ProviderUpload timePermanent linkEditableDashboardGDPR
OneClickLiveFASTEST<2sFree 7d, Pro permanentYesYesEU DPA available
EdgeOne Pages2-4sYesNoNoTencent parent, no EU DPA
JSONBin<1s API callYesYesYesUS-based, no EU DPA

FAQ

How do I host a JSON file with a public URL?

Upload the file using the box at the top of this page. OneClickLive returns a public HTTPS URL in under 2 seconds. The file is served with Content-Type: application/json so fetch() and curl read it correctly.

Does the URL support CORS?

Yes. The endpoint sends Access-Control-Allow-Origin: * so any browser-side fetch() works without a proxy. This makes the URL safe to reference from a CodePen, JSFiddle, or local development server.

Can I use this as a mock API?

Yes — for GET-only mock responses. The endpoint always returns the same JSON; no POST/PUT/DELETE. For mutable mock data look at JSONBin, MockAPI, or a Cloudflare Workers KV-backed endpoint.

What's the file size limit?

1MB per file on the free in-page uploader. Signing in (still free) raises it to 10MB via the dashboard. Pro extends it to 100MB — sufficient for most static datasets and config bundles.

Can I update the JSON without changing the URL?

Yes. Sign in to your dashboard, replace the file, and the URL keeps working. Useful for feature flags, daily-refreshed config, or A/B-test variants — every fetch() call sees the latest version.

How is this different from JSONBin or JSONHost?

JSONBin and JSONHost run a fully mutable JSON store with POST/PUT routes and an API key model. OneClickLive is a simpler static-file host — one upload, one stable GET URL, no API key, no rate-limit on reads.

Is the JSON file private?

The file is encrypted at rest on Cloudflare R2. The URL is public but the slug is random and unguessable. For secrets or PII, password-protect via Pro or use an authenticated Workers endpoint instead.