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.67.0·September 7, 2026

Release Notes

πŸ’₯ BREAKING CHANGES

  • 66744f0 parser: [BREAKING] Rename panicked to fatal_error in ParserReturn (#26382) (overlookmotel)
  • 2c9a947 parser: [BREAKING] Reduce MAX_LEN to 256 bytes below u32::MAX (#26352) (overlookmotel)

πŸš€ Features

  • 68e12ab formatter_css: Follow the oxc-css-parser's acceptance line (#26337) (leaysgur)

πŸ› Bug Fixes

  • f7acdc0 formatter: Treat a JSDoc cast target as opaque in chain layouts (#26375) (leaysgur)
  • 104061b formatter: Keep JSDoc cast parens with a comment inside them (#26374) (leaysgur)
  • 3d00a76 formatter_css: Keep comment inside important and simple-vars colon (#26370) (leaysgur)
  • 172ddb6 formatter_css: Keep a same-line line comment on its line (#26321) (leaysgur)
  • cafaf32 formatter_css: Never drop comments inside an at-rule prelude (#26320) (leaysgur)
  • 534a0fe formatter_css: Keep a line comment on its comma's line (#26319) (leaysgur)
  • 99cfd75 formatter_css: Hide raw comment printing API, use strcut instead (#26316) (leaysgur)
  • 2028896 formatter_css: Preserve comments around SCSS/Less variable values (#26276) (leaysgur)
  • 6752abc formatter_css: Keep leading comments before (#26272) (leaysgur)
  • 3b054de formatter_graphql: Align comment printing after open { (#26271) (leaysgur)
  • b3c287a formatter_css: Fix SCSS bracket list printing (#26270) (leaysgur)
  • bac770a formatter_css: Preserve comment in SCSS paren comma list (#26269) (leaysgur)
  • c7b57ef formatter_css: Print SCSS map consisntent with and without comment (#26268) (leaysgur)
  • 063e2b6 formatter_css: Preserve trailing comma in single-item scss lists (#26245) (leaysgur)
  • 5f9580d oxfmt: Bump prettier-plugin-tailwindcss (#26273) (leaysgur)

⚑ Performance

  • 1cad286 oxfmt: Match editorconfig once per file (#26239) (Yuji Sugiura)
  • 260c5eb oxfmt: Match overrides once per file (#26238) (leaysgur)
  • 61565bc oxfmt: Share resolved FormatConfig via Arc instead of cloning per file (#26237) (leaysgur)

πŸ“š Documentation

  • 32084d4 formatter_core: Clarify printer hard_line compression (#26312) (leaysgur)
  • 4fabdcc formatter,formatter_css,formatter_graphql,formatter_yaml: Update DIVERGENCES.md (#26267) (leaysgur)
  • 26a1fa4 formatter_core: Refine FORMATTER_POLICY (#26266) (leaysgur)

πŸ›‘οΈ Security

  • 9a612d5 deps: Update npm packages (#26178) (renovate[bot])

Installer type: zip

x86β€”B02B9E5A0688F1154F96554C5C0F8EB8E885614FAD5E0CB5DB998402EE9DC229
x64β€”33F689A983F3332296B71071409468936DB49DA03364F081A6359A49AA9DAA2E
arm64β€”2E388E07C85F07F31A198E480D53C3984265795C40AFB9909DC2088FB9E6BFD4

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 (33)

0.66.0
x86β€”C33500EF584595E6EDBE4A0D0D9D2AC6AA416A5E9310C2CDF7923F7C36B31A5C
x64β€”1513AA65C7D70A9EB955B03FCFD477B7E44433F59A3BBE28E37C90E9BC53C310
arm64β€”9FDC76CF619A5E2FBC769B7B96553DD980FC43FB625B16354A793CBC0A0B03E6
0.65.0
x86β€”565AE545929EE68E75B94BD644C4CBC4F1DA343B9351699BAB3BAA953C125A1F
x64β€”4880057B7570392A19B632CF1883ACFD532CD157F5101A96FA5DDD9EF4FFC147
arm64β€”795789FF74F426ECEE00C2C530D030B65005E198426F069B432DAFF8E050C1D1
0.64.0
x86β€”A971B8195CC196FB2B61EDD9EE69D6F5BB860F63E1C7958B74C20B6B0B7EA112
x64β€”3D2A74BF5400F7BE380B8AE7C4A09055166CCAB1F19B2D79564713CD780815D6
arm64β€”E10FCBAEFCEC38B3660B71439B69243E3700FCD320B6F74BEC9B5596857542F7
0.63.0
x86β€”FF73136788B61C008CD530E23BDB55736097E78FA0449AEACC61A7A409C7F027
x64β€”8B5C4DF2DF46A44C90C312F871E28F7DE05E77660561A17F775E91191C9B39D2
arm64β€”2B39001C54031CDB671AD4BA234DF9DCB0C6EC117C360CF567933D72B77C7580
0.62.0
x86β€”278862D4CCE0D712DEA098F8B393C313BE110BDB39AA055C81AE10B792B53F63
x64β€”0A2E76C96E20FAA2E61EAB86B4F66537DF9C4D7B47E1B84CF086B0B535B39346
arm64β€”89C1D8773AFFEEB75DA21957B3A50C0F5FA14333F0DE537E2353159E63345141
0.61.0
x86β€”051FE98FF462DB453208140BF4D83D906A196A845F1ED82A2F63CC6CB8BD8F0E
x64β€”FA8F3BBE57DB947AA5FA86A758118FBDF60621E85510C681393FDA7C42A09BC1
arm64β€”BB4FBFDBDC97B74ED6522C0B510F173F27E7650092DACFCC003E38278BDB1B05
0.60.0
x86β€”4B8A63941F39B9665BAF0B168BCA5F7E724F70B0BF678050ADD3A8F70907715E
x64β€”841409CB413A04D340221F37C504130A036BB21B6B63E29A112B9AD552AB243C
arm64β€”BBCE9BE8B4D786FAD7A5EA190F856890D55A86A6912B5237E466AEF7D42F6EBD
0.59.0
x86β€”3248FEDED0207E361D21E83F345A16BF05743E01DB74773F2D72D29DC3A52CB3
x64β€”F8D68F05EF570F45BBA942A51122CC64A76519FFDCBBC92BB689FA31D3C89177
arm64β€”2C964C47ECB8612B4363FA09118DCE02488E033951E2E0B0A10EE6D01AF4D342
0.58.0
x86β€”48956E2989AE5856681B8C3E60FE449293F300B6121BA35158551A5E5AC7F1BE
x64β€”8F7EAB6B9E9C05706B8C4634421A7677D56734091FB0F925E583955C0ACD72C5
arm64β€”6CD886B27936D1DA7ACAC71C2DDC27B4D6118E031491D1E21AEC0A9A1E0DE4AD
0.57.0
x86β€”820440BDED44488705A8770E44461CF5FEA308C1158531BB8B3DA87A4384FDE4
x64β€”A7151F1536A976BEE51A2011CF26E1454A802A309098547F71A1D5DFF8622E2A
arm64β€”4B0BAA9F4E839D94509D4111877C89BE1BBA5E54DA430EE31EFADD9584FED69E
0.56.0
x86β€”D1D86136A85C104470E32DE716F73481390BD44B4082EE7D9DE8C94920ECA105
x64β€”B1A3B86E8C205D19DD129D4D717BFC12B57D8EFF9F16C9AB468C3E6AF9DEA46A
arm64β€”F7194B0EF2E63083D72C202EEA6A3874CD26B92F04F01A408610A2B14F755526
0.55.0
x86β€”ABE9D425E59F86897057A346FDE6C41DC5733C329DF095D174821CAE5F1F72AE
x64β€”124368F72F7CAEE73B56E6135610ECC1140691AE73EA720F031D4125A30C81FC
arm64β€”2FDABB658CD393F34734E2686A96B79D06C15B51222381169C1AD575FB876805
0.54.0
x64β€”70381A422464BF13ABD8D8210E0E0CDC2AEDC96DFE0A4D76A732DE547A3EA7A6
arm64β€”AF4D275856D205E6453CCB5FB0878F457EFA3FE1A0DE61732D3D73AAB175D013
0.53.0
x64β€”1773DD53DC4F4082378F0C12192BD3287EB52BCAAFFDD57EA888C0E8F912E0D2
arm64β€”3137750C8899E3B112F1591AE288672EA64E2AB8A323652C742BBA3A7B392FAF
0.52.0
x64β€”F5D9CFB391F46A3CBC6E674AC76D90F15FB2D5CC25510CF8F0C2D0B88C00CEF5
arm64β€”D3A4AEB53FAF444784CE72BDA504AAD0FE67CD7130E8EFFE5CA6ECE14E5DCB54
0.51.0
x64β€”D5C3788CAFFD8ABB57E71C6E5C8B71755A674B0EBD1B2137C811D11EC728BB68
arm64β€”5357839DE8195E77621F1C295376B1C7E151F8879FC7E10F31B1AA92B6E8754A
0.50.0
x64β€”BBB15C7986172F68E94B8316872C9BCF21049DBF1FEA01BA94924CFB5F9850B2
arm64β€”818413044B0010F0AD61BC568DDBBCDC48AF06F8B83B1495FB74D793233D0F12
0.49.0
x64β€”E87A0E9ABFF3ED484BA3A7F63F47CA92305F0FA63521AC81A0D1B62FA3928B46
arm64β€”5EFE0DC702B561089080D1C1DECFFBF56BDF1D6F301FB8E3C407F782C4D1C73C
0.48.0
x64β€”21302B113379444F6D400A7A1F8BD3CD7A6DC21A239382E7D70A860F93F3AE42
arm64β€”D7C53D88F4DE49E3A4AC5C7FFB09443F4D04C13FD336187593C341C2DA98368D
0.47.0
x64β€”CFE593DACDF7F9866459DC0893D68C0B6CC483EC2BD692BE996E9A888D5C8F62
arm64β€”261447DBCF02E7DAC5A3DE119D9DDEE9405BFC73753FE8044B9E9EB02F7D4083
0.46.0
x64β€”2882647D85D6EF09EB467FD0B8463232E27B872DE282C6663B7144EA5423AAAA
arm64β€”CB4AF82779FA3021E8346BF98CCEE75F3C40E43B9A61819BBDADDD2BB1173183
0.45.0
x64β€”96634D94668E951D6F02A84B2B2CC141D2C290F9BBB348C8A0EA1A533CECF2E6
arm64β€”3D6FBC11FD0F62900DED60256929011B19A6BCA5311F44EE130E110BC6CB8C84
0.44.0
x64β€”580D8AA63C670353A766AAA78C54DE0FB5C74B347A822EA1578148AB75E399A8
arm64β€”5920EA5CC5C6D70A3003BCE926A4E82BFD04C7922341BADAA5572F901DF4114A
0.43.0
x64β€”A99D2F6A076A8955A2014F8A3DAD16146D4C67FDBD44A886091ED3891A384341
arm64β€”AAFCD89F355BE7F577B269CFB4C23FC9BE74963E5AD181476EA0CF9B8D27A173
0.42.0
x64β€”8DD144E5152AAEF5D5191D963683F060582DF3D58A3C67E98A2BB9AF515A1D59
arm64β€”D88D825725A1AEF06AC2C9AF663D787464CEB56BDB514DD527C294A6885E4C23
0.41.0
x64β€”187A8CBF96D2644536D0F1159B403A0732C548DDF2BA46B241566165C530C3BD
arm64β€”727AB7BD3B13CB49483D3F4AE5FA4EC2F8D4FB2F9C342D6C0191383BDD937F29
0.40.0
x64β€”0C1122EEFC5EB4597A607ECDC8155744ADAE5A18AED1F0B45416FB18A43952B7
arm64β€”7A6AB939F779E4FAB35F59B1E9873E90EB5B8130FD473E70900D98221254506C
0.39.0
x64β€”FE9FE16866D4547411B0D38CD044AE25DA4C121ED18FCECC75D3B05B6F815AB0
arm64β€”1D762582D761DFC2635F3AA364BD05510A30D19B5DE7016585853DD924E35CB6
0.36.0
x64β€”85416EFA923320E97484C71D25A952B488921CB79C829FF2AB462612BCC8B1EB
arm64β€”544DC778A7810A6649A786FEEE313124537873A55FFD36B2D69D17BE5FCDC4C1
0.35.0
x64β€”1C116948C5B02CD57A6F34F1E577695DD04168A45A31515A7507A5EE75F5D7BD
arm64β€”27A30E5F9B197AFDCB5620A170F5AE32FE6FB13DE0334AA6920CFD1F3416EF08
0.34.0
x64β€”ACCDFA251DBD52B6018B479DC9885FB892DB2BBBC290B8AA79C3AD7B7D33FC6E
arm64β€”5343B85B2D9100EB5AB779681A72FAAE9BCBE7D4149DEE9E702FF06B0C2CCF29
0.33.0
x64β€”FD87800A3FB03BC5BFC373E8BE3B37F19A097070D9D656137EA744787CFC7845
arm64β€”FFCA31511ECC450E45EBA5C9918C866DE567888849F4CE2366B8D5110862422E
0.28.0
x64β€”FB212A86CEC43120AE8A246105E48210B9E7CAE9B905B173D375DA5ECE2EF332
arm64β€”01EF009A38A21F17CB8FD0A8A68D3C697164772EF7E14CEFFC9C707C59944EA1