oxfmt

VoidZero Inc. & Contributors·oxc-project.oxfmt

Oxfmt is a high-performance formatter for the JavaScript ecosystem.

Oxfmt is a high-performance formatter for the JavaScript ecosystem. - Supported languages JavaScript, JSX, TypeScript, TSX, JSON, JSONC, JSON5, YAML, TOML, HTML, Angular, Vue, CSS, SCSS, Less, Markdown, MDX, GraphQL, Ember, Handlebars - Built for scale Oxfmt targets large codebases and CI environments, with an emphasis on high throughput and predictable performance. It is built on the Oxc compiler stack and avoids architectural bottlenecks common in existing formatter implementations. Our benchmarks show Oxfmt to be approximately 30x faster than Prettier and 2x faster than Biome. - Batteries included - Oxfmt includes built-in features that typically require external Prettier plugins: - Import sorting - Tailwind CSS class sorting - package.json field sorting - Embedded formatting (CSS-in-JS, GraphQL, etc.) - Prettier-compatible Oxfmt integrates into existing Prettier-based workflows. The oxfmt CLI behaves similarly to Prettier by default, allowing adoption with minimal changes to scripts and tooling. Oxfmt matches Prettier’s JavaScript formatting. When migrating from recent versions of Prettier, formatting differences should not occur; any differences are considered bugs. Oxfmt currently passes approximately 95% of Prettier's JavaScript and TypeScript test suite. The remaining cases are niche scenarios, and we work with the Prettier team to converge on formatting over time. No additional dependencies or configuration needed.

winget install --id oxc-project.oxfmt --exact --source winget

Latest 0.58.0·July 6, 2026

Release Notes

πŸš€ Features

  • 4f4313e formatter_css: Update oxc-css-parser 0.0.5 (#24120) (leaysgur)
  • 0ccd8a1 formatter_graphql: Update oxc-graphql-parser 0.0.5 (#24106) (leaysgur)
  • 89ec3d9 formatter_core: Add literal line and root indention primitives (#24051) (leaysgur)
  • 213a96b formatter_core: Add no-expand-parent for multiline text (#24050) (leaysgur)
  • 0e5bcc9 formatter_graphql: Update oxc-graphql-parser 0.0.4 (#24039) (leaysgur)
  • e0b35a1 formatter_css: Update [email protected] (#23974) (leaysgur)

πŸ› Bug Fixes

  • 1fe6546 formatter: Omit unneeded ; for type members with no-semi (#24212) (leaysgur)
  • 0ad7316 formatter: Print space for ForStatement.update only if exists (#24211) (leaysgur)
  • 3abbed5 formatter: Print ; before jsdoc type-cast parens with no-semi (#24208) (leaysgur)
  • 9af3833 formatter_css: Make scss formatter consistent (#24207) (leaysgur)
  • 46d7194 formatter_css: Use fill IR for @forward members (#24206) (leaysgur)
  • e31038f formatter_css: Keep comment inside sass config list (#24205) (leaysgur)
  • d3b9591 formatter: Add parens around await/yield with (#24202) (leaysgur)
  • 2121a55 oxfmt: Reuse tinypool process during the same LSP process (#24197) (leaysgur)
  • 9bf4b4a formatter_css: Align CSS output to Prettier 3.9.1 (#24100) (leaysgur)
  • cd2452e formatter_css: Align SCSS output to Prettier 3.9.1 (#24097) (leaysgur)
  • 4ee8745 formatter_css: Keep selector value contain line-break without breaking line (#24055) (leaysgur)
  • e1ece97 formatter_graphql: Break implements list by print-width (#23997) (leaysgur)
  • 0a6b16c formatter_json: Preserve key and literal value for json-stringify (#23996) (leaysgur)
  • 903ab6e formatter_css: Preserve newlines in css-in-js selector list (#23992) (leaysgur)
  • ea5d095 oxfmt: Update --migrate prettier (#23963) (leaysgur)

⚑ Performance

  • 468e1e3 formatter_core: Make printer queues cursor-based (#24098) (Boshen)
  • c59f2fe rust: Return impl ExactSizeIterator from slice-backed accessors (#24144) (Boshen)
  • c292fb2 formatter: Inline fits element dispatcher (#23982) (camc314)

Installer type: zip

ArchitectureScopeDownloadSHA256
x86β€”Download48956E2989AE5856681B8C3E60FE449293F300B6121BA35158551A5E5AC7F1BE
x64β€”Download8F7EAB6B9E9C05706B8C4634421A7677D56734091FB0F925E583955C0ACD72C5
arm64β€”Download6CD886B27936D1DA7ACAC71C2DDC27B4D6118E031491D1E21AEC0A9A1E0DE4AD

Details

Homepage
https://oxc.rs/docs/guide/usage/formatter.html
License
MIT
Publisher
VoidZero Inc. & Contributors
Support
https://github.com/oxc-project/oxc/issues
Copyright
Copyright (c) 2024-present VoidZero Inc. & Contributors
Moniker
oxfmt

Tags

formatterjavascripttypescript

Older versions (24)

0.57.0
ArchitectureScopeDownloadSHA256
x86β€”Download820440BDED44488705A8770E44461CF5FEA308C1158531BB8B3DA87A4384FDE4
x64β€”DownloadA7151F1536A976BEE51A2011CF26E1454A802A309098547F71A1D5DFF8622E2A
arm64β€”Download4B0BAA9F4E839D94509D4111877C89BE1BBA5E54DA430EE31EFADD9584FED69E
0.56.0
ArchitectureScopeDownloadSHA256
x86β€”DownloadD1D86136A85C104470E32DE716F73481390BD44B4082EE7D9DE8C94920ECA105
x64β€”DownloadB1A3B86E8C205D19DD129D4D717BFC12B57D8EFF9F16C9AB468C3E6AF9DEA46A
arm64β€”DownloadF7194B0EF2E63083D72C202EEA6A3874CD26B92F04F01A408610A2B14F755526
0.55.0
ArchitectureScopeDownloadSHA256
x86β€”DownloadABE9D425E59F86897057A346FDE6C41DC5733C329DF095D174821CAE5F1F72AE
x64β€”Download124368F72F7CAEE73B56E6135610ECC1140691AE73EA720F031D4125A30C81FC
arm64β€”Download2FDABB658CD393F34734E2686A96B79D06C15B51222381169C1AD575FB876805
0.54.0
ArchitectureScopeDownloadSHA256
x64β€”Download70381A422464BF13ABD8D8210E0E0CDC2AEDC96DFE0A4D76A732DE547A3EA7A6
arm64β€”DownloadAF4D275856D205E6453CCB5FB0878F457EFA3FE1A0DE61732D3D73AAB175D013
0.53.0
ArchitectureScopeDownloadSHA256
x64β€”Download1773DD53DC4F4082378F0C12192BD3287EB52BCAAFFDD57EA888C0E8F912E0D2
arm64β€”Download3137750C8899E3B112F1591AE288672EA64E2AB8A323652C742BBA3A7B392FAF
0.52.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadF5D9CFB391F46A3CBC6E674AC76D90F15FB2D5CC25510CF8F0C2D0B88C00CEF5
arm64β€”DownloadD3A4AEB53FAF444784CE72BDA504AAD0FE67CD7130E8EFFE5CA6ECE14E5DCB54
0.51.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadD5C3788CAFFD8ABB57E71C6E5C8B71755A674B0EBD1B2137C811D11EC728BB68
arm64β€”Download5357839DE8195E77621F1C295376B1C7E151F8879FC7E10F31B1AA92B6E8754A
0.50.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadBBB15C7986172F68E94B8316872C9BCF21049DBF1FEA01BA94924CFB5F9850B2
arm64β€”Download818413044B0010F0AD61BC568DDBBCDC48AF06F8B83B1495FB74D793233D0F12
0.49.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadE87A0E9ABFF3ED484BA3A7F63F47CA92305F0FA63521AC81A0D1B62FA3928B46
arm64β€”Download5EFE0DC702B561089080D1C1DECFFBF56BDF1D6F301FB8E3C407F782C4D1C73C
0.48.0
ArchitectureScopeDownloadSHA256
x64β€”Download21302B113379444F6D400A7A1F8BD3CD7A6DC21A239382E7D70A860F93F3AE42
arm64β€”DownloadD7C53D88F4DE49E3A4AC5C7FFB09443F4D04C13FD336187593C341C2DA98368D
0.47.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadCFE593DACDF7F9866459DC0893D68C0B6CC483EC2BD692BE996E9A888D5C8F62
arm64β€”Download261447DBCF02E7DAC5A3DE119D9DDEE9405BFC73753FE8044B9E9EB02F7D4083
0.46.0
ArchitectureScopeDownloadSHA256
x64β€”Download2882647D85D6EF09EB467FD0B8463232E27B872DE282C6663B7144EA5423AAAA
arm64β€”DownloadCB4AF82779FA3021E8346BF98CCEE75F3C40E43B9A61819BBDADDD2BB1173183
0.45.0
ArchitectureScopeDownloadSHA256
x64β€”Download96634D94668E951D6F02A84B2B2CC141D2C290F9BBB348C8A0EA1A533CECF2E6
arm64β€”Download3D6FBC11FD0F62900DED60256929011B19A6BCA5311F44EE130E110BC6CB8C84
0.44.0
ArchitectureScopeDownloadSHA256
x64β€”Download580D8AA63C670353A766AAA78C54DE0FB5C74B347A822EA1578148AB75E399A8
arm64β€”Download5920EA5CC5C6D70A3003BCE926A4E82BFD04C7922341BADAA5572F901DF4114A
0.43.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadA99D2F6A076A8955A2014F8A3DAD16146D4C67FDBD44A886091ED3891A384341
arm64β€”DownloadAAFCD89F355BE7F577B269CFB4C23FC9BE74963E5AD181476EA0CF9B8D27A173
0.42.0
ArchitectureScopeDownloadSHA256
x64β€”Download8DD144E5152AAEF5D5191D963683F060582DF3D58A3C67E98A2BB9AF515A1D59
arm64β€”DownloadD88D825725A1AEF06AC2C9AF663D787464CEB56BDB514DD527C294A6885E4C23
0.41.0
ArchitectureScopeDownloadSHA256
x64β€”Download187A8CBF96D2644536D0F1159B403A0732C548DDF2BA46B241566165C530C3BD
arm64β€”Download727AB7BD3B13CB49483D3F4AE5FA4EC2F8D4FB2F9C342D6C0191383BDD937F29
0.40.0
ArchitectureScopeDownloadSHA256
x64β€”Download0C1122EEFC5EB4597A607ECDC8155744ADAE5A18AED1F0B45416FB18A43952B7
arm64β€”Download7A6AB939F779E4FAB35F59B1E9873E90EB5B8130FD473E70900D98221254506C
0.39.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadFE9FE16866D4547411B0D38CD044AE25DA4C121ED18FCECC75D3B05B6F815AB0
arm64β€”Download1D762582D761DFC2635F3AA364BD05510A30D19B5DE7016585853DD924E35CB6
0.36.0
ArchitectureScopeDownloadSHA256
x64β€”Download85416EFA923320E97484C71D25A952B488921CB79C829FF2AB462612BCC8B1EB
arm64β€”Download544DC778A7810A6649A786FEEE313124537873A55FFD36B2D69D17BE5FCDC4C1
0.35.0
ArchitectureScopeDownloadSHA256
x64β€”Download1C116948C5B02CD57A6F34F1E577695DD04168A45A31515A7507A5EE75F5D7BD
arm64β€”Download27A30E5F9B197AFDCB5620A170F5AE32FE6FB13DE0334AA6920CFD1F3416EF08
0.34.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadACCDFA251DBD52B6018B479DC9885FB892DB2BBBC290B8AA79C3AD7B7D33FC6E
arm64β€”Download5343B85B2D9100EB5AB779681A72FAAE9BCBE7D4149DEE9E702FF06B0C2CCF29
0.33.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadFD87800A3FB03BC5BFC373E8BE3B37F19A097070D9D656137EA744787CFC7845
arm64β€”DownloadFFCA31511ECC450E45EBA5C9918C866DE567888849F4CE2366B8D5110862422E
0.28.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadFB212A86CEC43120AE8A246105E48210B9E7CAE9B905B173D375DA5ECE2EF332
arm64β€”Download01EF009A38A21F17CB8FD0A8A68D3C697164772EF7E14CEFFC9C707C59944EA1