HTML Paste
Paste Raw HTML Source — Highlighted, Never Executed
Share raw HTML snippets with syntax highlighting. Read source text, not a rendered preview.
Raw source, never rendered
There's a clean split in HTML-sharing tools: previewers like CodePen and JSFiddle *execute* your markup in a sandbox so you see the result, and source tools show you the literal characters. cdn22.net is firmly the second kind, on purpose. It shares the raw HTML source with highlight.js coloring — tags, attributes, inline styles, and embedded <script>/<style> blocks all shown as text — so the recipient reviews the actual markup instead of a rendered approximation of it.
The paste page and embed show HTML source as text, not a rendered preview. DOMPurify sanitizes the highlighted display HTML before it appears on the page. This display step does not rewrite the stored source or raw response, and it is not a guarantee that shared markup is safe. Review code you do not trust before running or embedding it elsewhere.
The everyday cases fit just as well: showing a colleague the exact <head> meta and Open Graph tags a page emits, reviewing a chunk of templated output, sharing an email's HTML so someone can see why a client mangles it, or handing over a component's markup for a code review where the structure — not the rendered pixels — is the point. Email HTML especially benefits, since its inline-style, table-based markup is unreadable when flattened by chat tools.
No signup to create or read. Anonymous pastes hold 100KB, enough for a full page's source, and auto-delete after 24 hours; sign in for 1MB and any expiry up to permanent for markup you'll reference long-term. CodePen renders but requires an account to save; a Gist needs a login to publish. A paste link opens for anyone, shows the markup exactly as written, and never runs a line of it.
If you want the source without the page around it, every paste also has a raw view. The Raw button on a paste opens https://api.cdn22.net/paste/<id>/raw, which returns the body as text/plain; charset=utf-8 with X-Content-Type-Options: nosniff. That is the literal paste raw case: byte-for-byte characters, no chrome, no highlighting — curl it into a file, pipe it into diff, or read it in a browser tab.
A raw HTML paste stays inert there for the same reason it is inert on the view page: the response is never served as text/html, so no tag, inline handler, or <script> in your markup executes.
Neighboring formats work the same way — a JSON pastebin link for API responses and config, a private paste link when the snippet should stay unlisted with an expiry you choose, and a permanent paste link (any expiry up to never) once you are signed in and the markup is something you will point people at again.
Where pastes stop is production. A paste is text for a person to read; when that markup becomes a file an app, a browser, or a build fetches on a schedule, move it up to a permanent file link — a CDN file URL that survives renames and never expires — uploaded through the file upload API. Same account, one step up: pastes for the review, CDN file URLs for the delivery.
Benefits With No Complexity
Global CDN delivery
Edge-cached worldwide
Signed-URL security
What You Get
Unlimited files
Unlimited storage
Public + Private storage
CDN ready links
Prepaid credits
More coming soon
How cdn22.net Works
1. Upload
2. Copy
3. Use Anywhere
Why Developers Choose cdn22.net
A Better Way to Store & Deliver Files
| CodePen | GitHub Gist | JSFiddle | cdn22.net | |
|---|---|---|---|---|
| Shows raw source, never rendered | ||||
| Create + read with no signup | ||||
| Choose expiry (1h to permanent) | ||||
| Renders HTML in a sandbox |
Calculate Your Needs
Storage
Egress
CDN Bandwidth
Need storage, egress, and request fees broken out — and compared against AWS list price for the same bytes? Use the CDN & storage cost calculator.
Paste HTML
- Global CDN delivery
- Edge-cached worldwide
- Signed-URL security
- Unlimited files
- Unlimited storage
- Public + Private storage
- No subscription — prepaid credits keep spend predictable