diff --git a/lua/null-ls/builtins/formatting/htmlbeautifier.lua b/lua/null-ls/builtins/formatting/htmlbeautifier.lua
new file mode 100644
index 00000000..4de3abbd
--- /dev/null
+++ b/lua/null-ls/builtins/formatting/htmlbeautifier.lua
@@ -0,0 +1,23 @@
+local h = require("null-ls.helpers")
+local methods = require("null-ls.methods")
+
+local FORMATTING = methods.internal.FORMATTING
+
+return h.make_builtin({
+ name = "htmlbeautifier",
+ meta = {
+ url = "https://github.com/threedaymonk/htmlbeautifier",
+ description = "A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.",
+ },
+ method = FORMATTING,
+ filetypes = { "eruby" },
+ generator_opts = {
+ command = "htmlbeautifier",
+ args = {
+ "$FILENAME",
+ },
+ to_stdin = false,
+ to_temp_file = true,
+ },
+ factory = h.formatter_factory,
+})