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.60.0·July 21, 2026

Release Notes

BREAKING CHANGES

  • 54cc121 ast: [BREAKING] Split MetaProperty into ImportMeta and NewTarget (#24557) (camc314)

Features

  • 3d22307 parser: Add ParseOptions::enable_ident_hashes (#24491) (Boshen)

Bug Fixes

  • fd7cf5b formatter_css: Update oxc-css-parser to 0.0.9 (#24745) (leaysgur)
  • e81b2ff oxlint,oxfmt: Report error for invalid glob patterns (#24744) (leaysgur)
  • 164e70a formatter: Stabilize comment between tagged temaplte tag and quasi (#24738) (leaysgur)
  • c399367 formatter_css: Update oxc-css-parser to 0.0.8 (#24725) (leaysgur)
  • 6fe866a oxfmt: Keep tailwind classes glued to template expr with preserveWhitespace (#24609) (leaysgur)
  • 33e32d8 formatter_css: Use line_suffix for EOL line comment (#24580) (leaysgur)
  • 5f76998 formatter_graphql: Keep same line comments pending across intervening tokens (#24579) (leaysgur)

Installer type: zip

x864B8A63941F39B9665BAF0B168BCA5F7E724F70B0BF678050ADD3A8F70907715E
x64841409CB413A04D340221F37C504130A036BB21B6B63E29A112B9AD552AB243C
arm64BBCE9BE8B4D786FAD7A5EA190F856890D55A86A6912B5237E466AEF7D42F6EBD

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

0.59.0
x863248FEDED0207E361D21E83F345A16BF05743E01DB74773F2D72D29DC3A52CB3
x64F8D68F05EF570F45BBA942A51122CC64A76519FFDCBBC92BB689FA31D3C89177
arm642C964C47ECB8612B4363FA09118DCE02488E033951E2E0B0A10EE6D01AF4D342
0.58.0
x8648956E2989AE5856681B8C3E60FE449293F300B6121BA35158551A5E5AC7F1BE
x648F7EAB6B9E9C05706B8C4634421A7677D56734091FB0F925E583955C0ACD72C5
arm646CD886B27936D1DA7ACAC71C2DDC27B4D6118E031491D1E21AEC0A9A1E0DE4AD
0.57.0
x86820440BDED44488705A8770E44461CF5FEA308C1158531BB8B3DA87A4384FDE4
x64A7151F1536A976BEE51A2011CF26E1454A802A309098547F71A1D5DFF8622E2A
arm644B0BAA9F4E839D94509D4111877C89BE1BBA5E54DA430EE31EFADD9584FED69E
0.56.0
x86D1D86136A85C104470E32DE716F73481390BD44B4082EE7D9DE8C94920ECA105
x64B1A3B86E8C205D19DD129D4D717BFC12B57D8EFF9F16C9AB468C3E6AF9DEA46A
arm64F7194B0EF2E63083D72C202EEA6A3874CD26B92F04F01A408610A2B14F755526
0.55.0
x86ABE9D425E59F86897057A346FDE6C41DC5733C329DF095D174821CAE5F1F72AE
x64124368F72F7CAEE73B56E6135610ECC1140691AE73EA720F031D4125A30C81FC
arm642FDABB658CD393F34734E2686A96B79D06C15B51222381169C1AD575FB876805
0.54.0
x6470381A422464BF13ABD8D8210E0E0CDC2AEDC96DFE0A4D76A732DE547A3EA7A6
arm64AF4D275856D205E6453CCB5FB0878F457EFA3FE1A0DE61732D3D73AAB175D013
0.53.0
x641773DD53DC4F4082378F0C12192BD3287EB52BCAAFFDD57EA888C0E8F912E0D2
arm643137750C8899E3B112F1591AE288672EA64E2AB8A323652C742BBA3A7B392FAF
0.52.0
x64F5D9CFB391F46A3CBC6E674AC76D90F15FB2D5CC25510CF8F0C2D0B88C00CEF5
arm64D3A4AEB53FAF444784CE72BDA504AAD0FE67CD7130E8EFFE5CA6ECE14E5DCB54
0.51.0
x64D5C3788CAFFD8ABB57E71C6E5C8B71755A674B0EBD1B2137C811D11EC728BB68
arm645357839DE8195E77621F1C295376B1C7E151F8879FC7E10F31B1AA92B6E8754A
0.50.0
x64BBB15C7986172F68E94B8316872C9BCF21049DBF1FEA01BA94924CFB5F9850B2
arm64818413044B0010F0AD61BC568DDBBCDC48AF06F8B83B1495FB74D793233D0F12
0.49.0
x64E87A0E9ABFF3ED484BA3A7F63F47CA92305F0FA63521AC81A0D1B62FA3928B46
arm645EFE0DC702B561089080D1C1DECFFBF56BDF1D6F301FB8E3C407F782C4D1C73C
0.48.0
x6421302B113379444F6D400A7A1F8BD3CD7A6DC21A239382E7D70A860F93F3AE42
arm64D7C53D88F4DE49E3A4AC5C7FFB09443F4D04C13FD336187593C341C2DA98368D
0.47.0
x64CFE593DACDF7F9866459DC0893D68C0B6CC483EC2BD692BE996E9A888D5C8F62
arm64261447DBCF02E7DAC5A3DE119D9DDEE9405BFC73753FE8044B9E9EB02F7D4083
0.46.0
x642882647D85D6EF09EB467FD0B8463232E27B872DE282C6663B7144EA5423AAAA
arm64CB4AF82779FA3021E8346BF98CCEE75F3C40E43B9A61819BBDADDD2BB1173183
0.45.0
x6496634D94668E951D6F02A84B2B2CC141D2C290F9BBB348C8A0EA1A533CECF2E6
arm643D6FBC11FD0F62900DED60256929011B19A6BCA5311F44EE130E110BC6CB8C84
0.44.0
x64580D8AA63C670353A766AAA78C54DE0FB5C74B347A822EA1578148AB75E399A8
arm645920EA5CC5C6D70A3003BCE926A4E82BFD04C7922341BADAA5572F901DF4114A
0.43.0
x64A99D2F6A076A8955A2014F8A3DAD16146D4C67FDBD44A886091ED3891A384341
arm64AAFCD89F355BE7F577B269CFB4C23FC9BE74963E5AD181476EA0CF9B8D27A173
0.42.0
x648DD144E5152AAEF5D5191D963683F060582DF3D58A3C67E98A2BB9AF515A1D59
arm64D88D825725A1AEF06AC2C9AF663D787464CEB56BDB514DD527C294A6885E4C23
0.41.0
x64187A8CBF96D2644536D0F1159B403A0732C548DDF2BA46B241566165C530C3BD
arm64727AB7BD3B13CB49483D3F4AE5FA4EC2F8D4FB2F9C342D6C0191383BDD937F29
0.40.0
x640C1122EEFC5EB4597A607ECDC8155744ADAE5A18AED1F0B45416FB18A43952B7
arm647A6AB939F779E4FAB35F59B1E9873E90EB5B8130FD473E70900D98221254506C
0.39.0
x64FE9FE16866D4547411B0D38CD044AE25DA4C121ED18FCECC75D3B05B6F815AB0
arm641D762582D761DFC2635F3AA364BD05510A30D19B5DE7016585853DD924E35CB6
0.36.0
x6485416EFA923320E97484C71D25A952B488921CB79C829FF2AB462612BCC8B1EB
arm64544DC778A7810A6649A786FEEE313124537873A55FFD36B2D69D17BE5FCDC4C1
0.35.0
x641C116948C5B02CD57A6F34F1E577695DD04168A45A31515A7507A5EE75F5D7BD
arm6427A30E5F9B197AFDCB5620A170F5AE32FE6FB13DE0334AA6920CFD1F3416EF08
0.34.0
x64ACCDFA251DBD52B6018B479DC9885FB892DB2BBBC290B8AA79C3AD7B7D33FC6E
arm645343B85B2D9100EB5AB779681A72FAAE9BCBE7D4149DEE9E702FF06B0C2CCF29
0.33.0
x64FD87800A3FB03BC5BFC373E8BE3B37F19A097070D9D656137EA744787CFC7845
arm64FFCA31511ECC450E45EBA5C9918C866DE567888849F4CE2366B8D5110862422E
0.28.0
x64FB212A86CEC43120AE8A246105E48210B9E7CAE9B905B173D375DA5ECE2EF332
arm6401EF009A38A21F17CB8FD0A8A68D3C697164772EF7E14CEFFC9C707C59944EA1