A guide to formatting an RSS 2.0 feed so DEV.to imports your articles, images, and tags with zero formatting errors.
1. Quick Checklist: What to Do
- [ ] Wrap full article HTML inside
. - [ ] Convert all image
src,srcset, and linkhrefattributes to absolute URLs (https://domain.com/...). - [ ] Sanitize tags (
): alphanumeric only (a-z0-9), max 20 chars, max 4 tags per post. - [ ] Provide a unique
to prevent duplicate imports. - [ ] Provide cover images via
and as the firstinside. - [ ] In DEV Settings, keep "Mark RSS source as canonical" checked and "Replace self-referential links" unchecked.
2. RSS Field Reference
Fields
| Field | Requirement | What It Does on DEV.to |
|---|---|---|
|
Required | Article headline. Escape XML special characters. |
|
Required | Canonical link back to original post. |
|
Required | Unique ID. Prevents re-importing duplicates on sync. |
|
Required | Full HTML body wrapped in . Converted to Markdown by DEV. |
|
Fallback | Excerpt/summary. Used as body only if is missing. |
|
Recommended | UTC date (Wed, 19 Aug 2026 10:00:00 GMT). Sets publication/draft date. |
|
Optional (Max 4) | Becomes post tags. Must be alphanumeric and $\le$ 20 chars. |
|
Optional | Sets the post's cover/hero image (type="image/webp" or image/png). |
|
Optional | email@domain.com (Author Name) |
3. Strict Formatting Rules
Rule 1: Tags ()
DEV.to rejects or corrupts tags that don't match [a-zA-Z0-9]:
-
Remove special chars:
next.js$\rightarrow$nextjs,web-dev$\rightarrow$webdev,c#$\rightarrow$csharp. - Truncate: Maximum 20 characters per tag.
- Limit: Maximum 4 tags per post.
Rule 2: Images & Links (Must Be Absolute)
DEV.to cannot resolve relative paths like /images/hero.png.
Rule 3: Cover Images
To ensure the cover image renders both as the header banner and in feed previews:
- Add
. - Prepend
to
.
4. Gist Templates
Template A: Minimum Viable RSS Feed
The bare minimum needed for DEV.to to ingest a post cleanly:
Template B: Full Production RSS Feed (With Tags, Covers & CDATA)
5. Copy-Paste Code Utilities (TypeScript)
Use these helper functions when building your RSS feed generator:
6. How to Configure DEV.to Settings
- Go to dev.to/settings/extensions.
- Scroll to "Publishing to DEV Community from RSS".
- Paste your feed URL (e.g.
https://yourdomain.com/rss.xml). - Set the options:
-
Mark the RSS source as canonical URL by default:
[x] Checked(Preserves your Google SEO ranking). -
Replace self-referential links with DEV Community-specific links:
[ ] Unchecked(Keeps internal links pointing to your website).
-
Mark the RSS source as canonical URL by default:
- Click "Submit feed settings" $\rightarrow$ Click "Fetch feed now".
- Go to dev.to/dashboard to view, edit, and publish your imported drafts.


Top comments (0)