rendercv2yamlresume
Convert an existing RenderCV YAML file to YAMLResume format with rendercv2yamlresume, including section, field, and vocabulary mapping.
rendercv2yamlresume is a command-line tool to convert a RenderCV YAML file to YAMLResume format.
RenderCV and YAMLResume share the same idea — a resume is a text file — but
they model the data differently. RenderCV lets every section title be an
arbitrary string and infers an entry type per section, while YAMLResume has a
fixed set of section keys, stable field names and a controlled vocabulary for
values such as degree. This tool bridges the two.
Features
- Section mapping:
experience→work,selected_honors→awards, and the other names RenderCV's own samples use - Field mapping:
company/position→name/position,journal→publisher,label/details→ skillname/keywords, and more - Vocabulary mapping: free-form degrees (
PhD,BS,M.Sc.) and social networks (X,StackOverflow) are mapped onto YAMLResume's fixed lists - Date handling:
start_date/end_dateranges becomestartDate/endDate, a singledatebecomes the range start, andpresentis dropped because an emptyendDatealready renders as "Present" - Best-effort conversion with a report: anything YAMLResume cannot express is listed rather than silently dropped
- Validation: the result is checked against YAMLResume's own schema before it is written
Installation
npm install -g rendercv2yamlresumepnpm add -g rendercv2yamlresumeyarn global add rendercv2yamlresumebun add -g rendercv2yamlresumeUsage
# Convert and write alongside the input file
rendercv2yamlresume John_Doe_CV.yaml
# Or choose the output path
rendercv2yamlresume John_Doe_CV.yaml resume.yml
# Write even if the result does not validate
rendercv2yamlresume John_Doe_CV.yaml --forceWhen you omit output-file, the result is written next to the input with a
.yml extension, so John_Doe_CV.yaml becomes John_Doe_CV.yml. An input that
already ends in .yml resolves to the same path, so pass an explicit output
path — or --force to overwrite the input — in that case.
The command exits with 0 on success and 1 when the input cannot be read,
has no cv block, uses an unsupported locale, produces a resume that fails
validation, or would overwrite its input without --force. --force permits
invalid output and identical input/output paths, but not unsupported locales.
| Code | Meaning |
|---|---|
0 | Converted and written (possibly with reported issues) |
1 | Input missing, unparseable, has no cv block, uses an unsupported locale, failed validation, or would overwrite the input without --force |
Example
Input:
cv:
name: John Doe
headline: Backend Engineer
email: [email protected]
location: San Francisco, CA
social_networks:
- network: LinkedIn
username: rendercv
sections:
education:
- institution: Princeton University
area: Computer Science
degree: PhD
start_date: 2018-09
end_date: 2023-05
experience:
- company: Nexus AI
position: Co-Founder & CTO
start_date: 2023-06
end_date: present
highlights:
- Built foundation model infrastructure serving 2M+ monthly API requests
selected_honors:
- bullet: Forbes 30 Under 30 in Enterprise Technology (2024)Output:
---
content:
basics:
name: John Doe
headline: Backend Engineer
email: [email protected]
location:
city: San Francisco
region: CA
profiles:
- network: LinkedIn
username: rendercv
education:
- institution: Princeton University
area: Computer Science
degree: Doctor
startDate: 2018-09
endDate: 2023-05
work:
- name: Nexus AI
position: Co-Founder & CTO
startDate: 2023-06
summary: '- Built foundation model infrastructure serving 2M+ monthly API requests'
awards:
- title: Forbes 30 Under 30 in Enterprise Technology
awarder: Unknown
date: '2024'Conversion Rules
Sections
RenderCV section titles are arbitrary. Titles that match a known alias are
mapped; anything else is dropped and reported. Underscores, repeated spaces and
full-width Unicode characters are normalized, so selected_honors and
Selected Honors both work. Canonical section titles from every locale
supported by YAMLResume are recognized automatically in addition to the
English aliases below.
| RenderCV title | YAMLResume key |
|---|---|
education, education_and_training | education |
experience, work, employment, professional_experience, work_experience | work |
projects, personal_projects | projects |
publications | publications |
skills, technical_skills | skills |
languages | languages |
interests | interests |
awards, honors, selected_honors, honors_and_awards | awards |
certificates, certifications | certificates |
volunteer, volunteer_experience | volunteer |
references | references |
If two titles map onto the same key (for example both experience and work),
their entries are appended rather than overwritten.
Entries
| RenderCV entry | Behaviour |
|---|---|
ExperienceEntry | → work or volunteer item; company → name/organization, position kept |
EducationEntry | → education item; degree mapped onto the fixed list |
PublicationEntry | → publication item; title → name, journal → publisher |
NormalEntry | → project or certificate item; a [Name](url) name is split into name + url |
OneLineEntry | → skill, language, interest or reference item, depending on the section |
BulletEntry / string | → award item in an awards section, otherwise reported |
Values
- Degrees are mapped case- and punctuation-insensitively:
PhD,Ph.D.,Doctorate→Doctor;BS,BSc,Bachelor of Science→Bachelor;MSc,M.S.,MBA→Master. - Social networks are matched against YAMLResume's list:
X→Twitter,StackOverflow→Stack Overflow. Networks with no counterpart (ORCID,ResearchGate,Mastodon) are dropped and reported. - Locales map RenderCV names (
english,mandarin_chinese) onto YAMLResume codes (en,zh-hans). If YAMLResume does not support the requested locale, conversion stops with a warning and no output file is written. - Languages and fluency are matched case-insensitively against YAMLResume's
fixed lists, with aliases such as
NativeandFluent. Unsupported values are dropped and reported. - Dates pass through unchanged, except that
presentis dropped. - Headline, email, phone and website are copied; if RenderCV supplies a list for email/phone/website, the first value is used and the rest are reported.
Limitations
This is a migration aid, not a lossless round-trip. The two data models are not equivalent, and some information cannot cross the boundary. Nothing is ever dropped without a report, and every drop names the field that caused it.
Cannot be represented at all — dropped with a report:
- Arbitrary sections.
patents,invited_talks,Things I Did— anything without a YAMLResume counterpart. - Per-element styling. The whole RenderCV
designblock: per-element colors, fonts, sizes, spacing, header alignment, photo placement, section title styles and Jinja2 template overrides. YAMLResume configures layout per engine underlayouts[]. settings.pdf_title,current_date,bold_keywordsand render-command options describe a rendering run rather than resume data.- The profile photo. YAMLResume has no photo field.
- Custom header connections.
custom_connectionswith their Font Awesome icons have no slot in YAMLResume's header. - Entry locations. YAMLResume supports a header location but has no location field on education, work, project, or volunteer items.
- Typst math and commands.
$inline math$and#emph[...]inside text fields survive as literal text, not as typeset output.
Represented, but with a loss you should review — reported for each case:
OneLineEntry→ skills loses the proficiency level. YAMLResume requires a level, so the converter writeslevel: Intermediate. Adjust every skill entry.- Bare bullets → awards invent an awarder. The converter writes
awarder: Unknown, and lists each award so you can fill it in. - Certificates invent an issuer. Converted certificates use
issuer: Unknownand are reported for review. NormalEntry→ projects requires a start date. An entry with neitherstart_datenordateis dropped and reported.- Highlights become Markdown bullets inside
summary. RenderCV keepssummaryandhighlightsseparate; YAMLResume has one rich-text field. summaryhas a minimum length. Entries whose merged summary is shorter than 16 characters are converted but reported so you can expand them.- Publication
publisheris derived. The converter usesjournal, then the author list, thenUnknown. Authors are dropped when a journal is available. - A single
datebecomes astartDate. YAMLResume has no single-date field, so an undated-by-range entry starts rather than floats. - Free-form degrees outside the vocabulary are dropped.
Habilitation,Licentiateand similar have no counterpart in YAMLResume's seven degrees. Add the entry by hand with a mapped degree such asDoctor. locationis a single string in RenderCV. The converter splits on commas, treats the last segment as the country when it matches YAMLResume's list, and otherwise as the region. Verify the result.- Multiple email/phone/website values. Only the first value is kept, and discarded values are reported.
Not converted by design:
- RenderCV's
locale.phrases,month_namesandmonth_abbreviations. YAMLResume ships its own translations for the locales it supports; use itslocaleblock.
Related Projects
- YAMLResume — resume as code in YAML
- RenderCV — write a CV in YAML, render a Typst PDF
- json2yamlresume — convert JSON Resume to YAMLResume
Last updated on